← Về thư mục
skills/timesfm-forecasting/scripts/forecast_csv.py
- run_preflight · function · L32-L46 — def run_preflight() -> dict
- load_model · function · L49-L75 — def load_model(batch_size: int = 32)
- load_csv · function · L78-L115 — def load_csv( path: str, date_col: str | None = None, value_cols: list[str] | None = None, ) -> tuple[pd.DataFrame, list[str], str | None]
- forecast_series · function · L118-L141 — def forecast_series( model, df: pd.DataFrame, value_cols: list[str], horizon: int ) -> dict[str, dict]
- write_csv_output · function · L144-L184 — def write_csv_output( results: dict[str, dict], output_path: str, df: pd.DataFrame, date_col: str | None, horizon: int, ) -> None
- write_json_output · function · L187-L191 — def write_json_output(results: dict[str, dict], output_path: str) -> None
- main · function · L194-L265 — def main() -> None