技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
model-selection【数据与研究】Evaluate ordered pmdarima forecasts with sequential holdouts, rolling or sliding cross-validation, aligned exogenous data, and explicit error scoring without temporal leakage.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Route here when the question is how to evaluate or compare forecasting
estimators on ordered observations. The route covers positional
train_test_split, RollingForecastCV, SlidingWindowForecastCV,
check_cv, cross_validate, cross_val_score, cross_val_predict, and
pmdarima.metrics.smape.
y, optional exogenous schema and
availability-at-origin rule, forecast horizon h, untouched final holdout,
scorer, and a fold/fit budget.train_test_split for one chronological holdout. Use
RollingForecastCV for expanding history or SlidingWindowForecastCV for a
fixed-size recent history. Materialize folds before fitting and inspect the
exact boundaries.y and the complete positional X together. X must have one row per
y row, including test rows, and the same columns at fit and prediction.
Fit feature transformations inside the estimator or pipeline on each fold;
route feature construction to preprocessing.cross_val_score for one error per fold, cross_validate when fit and
score timings are needed, and cross_val_predict for forecast values.
pmdarima returns raw errors: lower MAE, MSE, and SMAPE is better.h, step, fold count, estimator order/search, and optimizer
iterations bounded. Run the bundled local smoke test for a minimal check:
cross_validate_forecast.py.Read all three route references before making an evaluation decision: API reference, workflows, and troubleshooting.
X
from realized test targets.cross_val_predict requires step <= h; otherwise it rejects the geometry
rather than returning silently gapped predictions.scoring=None is invalid in this API. Supply an exact supported name or a
callable metric(y_true, y_pred).The operating guidance is distilled from pmdarima v2.1.1 at commit
4c2dfccb28f64d2c00a5e10b59c1d1a3e16576a9, including model-selection source,
metrics, tests, examples, README usage, and the user-guide index. Runtime
files are self-contained and do not require the source checkout.