forecasting
Fit, search, diagnose, and forecast fixed-order or automatic seasonal ARIMA models with pmdarima.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- forecasting
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Fit, search, diagnose, and forecast fixed-order or automatic seasonal ARIMA models with pmdarima.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md8.4 KB
- 参考文档references/troubleshooting.md10.3 KB
- 参考文档references/workflows.md5.3 KB
- 脚本scripts/simple_forecast.py3.6 KB
03 SKILL.md 正文
Forecasting
Use this skill when the task is to fit a pmdarima ARIMA/AutoARIMA, choose orders with auto_arima, handle seasonal periods or exogenous regressors, and produce forecasts or intervals. Keep the series and forecast horizon explicit; validate X shape before fitting and again before forecasting.
Operating route
- Inspect the input as a finite one-dimensional numeric series and decide whether the requested seasonal period
mis supported by the available history. - Start with a constrained fixed-order
ARIMAwhen the order is known. Otherwise use stepwiseauto_arimawith a bounded search,error_action='trace'while debugging, and a reproducible smallStepwiseContextwhen runtime needs a cap. - Fit with
yand, if used, anXmatrix whose row count equalslen(y). For a future forecast, provide exactly one row per period and the same number of columns as trainingX. - Call
predict(n_periods=h, return_conf_int=True, alpha=...)for an out-of-sample forecast and interval matrix, orpredict_in_sample(...)for fitted values/residual inspection. Examinemodel.order,model.seasonal_order,model.resid(), andmodel.summary()after fitting. - Treat
update(y_new, X=...)as the observation-refresh handoff to the persistence-update sub-skill; do not use this skill for artifact serialization or update mechanics.
Read the linked references for signatures, bounded workflows, diagnostics, and recovery. Run scripts/simple_forecast.py --help before adapting the bundled smoke case; it is deterministic, local, and plotting-free.
Boundaries
This skill covers pmdarima.ARIMA, pmdarima.auto_arima, pmdarima.arima.AutoARIMA, StepwiseContext, seasonal order/seasonal_order/m, exogenous regressors, fitting, prediction, intervals, and residual diagnostics. Preprocessing/transformer internals, cross-validation/model-selection orchestration, and serialization/update artifact mechanics belong to sibling skills.
Provenance note
The inspected source was tagged v2.1.1 at commit 4c2dfccb28f64d2c00a5e10b59c1d1a3e16576a9, while the inspection environment reports package version 0.0.0. Do not infer a release/version guarantee from this skill; route environment/version discrepancies to root troubleshooting.
Local references
- API reference — signatures, contracts, order semantics, exogenous shapes, and diagnostics.
- Workflows — fixed, seasonal, automatic, exogenous, interval, and diagnostic procedures.
- Troubleshooting — symptoms, likely causes, and bounded recovery actions.
- Deterministic smoke script — runnable tiny fixed/seasonal/automatic forecast example.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).