因果假设与情景
原能力
组织因果假设、竞争解释和情景,记录前提、证据及失效条件。(合同附件 R7 5.5)
首选项目
DoWhy(MIT)。 DoWhy
匹配范围
因果结构与外生变量预测支持情景计算。
源码
DoWhy · def estimate_effect(
dowhy/causal_model.py · 271–284 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def estimate_effect(
self,
identified_estimand,
method_name=None,
control_value=0,
treatment_value=1,
test_significance=None,
evaluate_effect_strength=False,
confidence_intervals=False,
target_units="ate",
effect_modifiers=None,
fit_estimator=True,
method_params=None,
num_quantiles_to_discretize_cont_cols=None,
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.
实现与验收要点
竞争解释、前提、独立证据及可证伪条件。