界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

evaluation

evaluation

【开发与工程】Evaluates Orbit forecasts with backtests, metrics, forecast plots, component plots, residual diagnostics, and model-level WBIC/BIC checks.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: evaluation description: "Evaluates Orbit forecasts with backtests, metrics, forecast plots, component plots, residual diagnostics, and model-level WBIC/BIC checks." disable-model-invocation: true metadata: disco-role: operating license: NOASSERTION

Evaluation

Use this sub-skill when the user wants to compare Orbit models, run a rolling or expanding backtest, score forecasts, inspect forecast plots, decompose predictions, or check residual diagnostics and WBIC/BIC results.

Route map

What belongs here

  • TimeSeriesSplitter and BackTester setup, split summaries, and prediction collection.
  • Built-in metrics and user-defined metric callables for backtest scoring.
  • plot_bt_predictions, plot_bt_predictions2, plot_predicted_data, plot_predicted_components, and the residual diagnostic plot.
  • EDA-style plots that help inspect the same series during evaluation when needed.
  • Model-level fit_wbic(), get_wbic(), and get_bic() usage on already-fitted Orbit models.

What stays out

  • Model construction, feature engineering, or data-loading utilities.
  • KTR or broader forecasting-model-selection guidance beyond the WBIC/BIC evaluation path itself.
  • Any claim that orbit.diagnostics.metrics.wbic() is a usable implementation; use the model methods instead.

Quick start

  1. Prepare a model that already has date_col, response_col, fit(), and predict().
  2. Choose a split scheme with TimeSeriesSplitter or pass split kwargs into BackTester.
  3. Call fit_predict() first, then score() for one or more metrics.
  4. Use the plot helpers on the backtest output or on a model prediction dataframe.
  5. For WBIC/BIC, call the model-level method on the fitted estimator class.

Safe execution notes

  • In headless sessions, set a non-interactive matplotlib backend or use is_visible=False.
  • orbit.diagnostics.plot imports statsmodels at module import time, so install it before using any plot helper.
  • plot_bt_predictions2(..., export_gif=True) needs imageio and an existing output directory.
  • Metric callables must use Orbit's accepted argument names; see the API reference before adding a custom scorer.
我的收藏