和顺 / 知衡 返回所属 Agent
ZH-06.01

市场情景

原能力

围绕关心的时间范围列出可检验的事件和路径,写清各自成立前提。(细化版 p.16–17)

首选项目

StatsForecast(Apache-2.0)。 StatsForecast

匹配范围

外生变量和预测区间建立量化情景候选。

源码

StatsForecast · def forecast(

python/statsforecast/core.py · 1744–1757 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
    def forecast(
        self,
        h: int,
        df: Any,
        X_df: Optional[DataFrame] = None,
        level: Optional[List[int]] = None,
        fitted: bool = False,
        prediction_intervals: Optional[ConformalIntervals] = None,
        id_col: str = "unique_id",
        time_col: str = "ds",
        target_col: str = "y",
    ) -> DataFrame:
        """Generate forecasts with memory-efficient model training.

实现与验收要点

具名事件、压力前提、预测时点及错误校准。