和顺 / 知几 返回所属 Agent
ZJ-07.01

情景构造

原能力

按关键不确定因素写出基准、替代或压力情景,保留各自成立条件。(细化版 p.4–5)

首选项目

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.

实现与验收要点

识别情景主轴、内部一致性、事实前提和停止条件。