forecasting
Configure, run, and debug Time-Series-Library long-term, short-term/M4, exogenous/TimeXer, and zero-shot forecasting workflows.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- forecasting
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Configure, run, and debug Time-Series-Library long-term, short-term/M4, exogenous/TimeXer, and zero-shot forecasting workflows.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/forecasting-workflows.md2.7 KB
- 参考文档references/metrics-and-results.md1.6 KB
- 参考文档references/troubleshooting.md2.2 KB
03 SKILL.md 正文
TSLib Forecasting
Use this sub-skill for TSLib forecasting tasks: long-term forecasting on ETT/custom/ECL/Traffic/Weather/Exchange/ILI-style CSVs, short-term M4 forecasting, TimeXer/exogenous variable recipes, zero-shot forecasting with large time-series models, and forecasting metric/output interpretation.
Route Here
- Build or revise
python run.py --task_name long_term_forecast ...commands. - Configure
--seq_len,--label_len,--pred_len,--features,--target, channel counts, and forecast model dimensions. - Use TimeXer or
features MSfor exogenous/target-only forecast settings. - Run or debug
short_term_forecastwith M4 seasonal patterns and SMAPE/OWA outputs. - Understand zero-shot
--task_name zero_shot_forecastand optional LTSM model dependencies. - Interpret
metrics.npy,pred.npy,true.npy, result text files, plot PDFs, and M4 forecast CSVs.
Reroute
- Data file validation, UEA/anomaly layouts, generic CLI outputs, or CPU/GPU preflight: use
../data-and-cli/SKILL.md. - Imputation, anomaly detection, and classification: use
../imputation-anomaly-classification/SKILL.md. - Adding models, Mamba/LTSM dependency installation, and augmentation flags: use
../foundation-models-and-customization/SKILL.md.
Start Fast
Render a small command rather than copying a benchmark script verbatim:
python scripts/build_tslib_command.py long-term \
--model DLinear --root-path ./dataset/tiny-custom/ --data-path tiny.csv \
--model-id tiny_custom --features M --channels 3 \
--seq-len 8 --label-len 4 --pred-len 4 --cpu-smoke
Then run the printed command from the TSLib checkout. Use real benchmark scripts only after paths, GPU, dependencies, and expected cost are clear.
Forecasting Modes
- Long-term forecast:
--task_name long_term_forecast; uses sliding windows and writes MAE/MSE/RMSE/MAPE/MSPE plus optional DTW. - Short-term/M4 forecast:
--task_name short_term_forecast --data m4; uses M4 seasonal patterns and losses such as SMAPE. Final averaged M4 metrics print after all six seasonal forecast CSVs exist. - Exogenous/TimeXer forecast: still uses
long_term_forecast; TimeXer recipes often set--model TimeXerand may usefeatures MSwhen forecasting a target with exogenous inputs. - Zero-shot forecast:
--task_name zero_shot_forecast --is_training 0; model files such as Chronos, Moirai, TimesFM, TiRex, Sundial, and TimeMoE can require optional packages, model downloads, and CUDA assumptions.
References and Helpers
references/forecasting-workflows.mdgives long-term, M4, TimeXer, and zero-shot recipes.references/metrics-and-results.mdexplains forecast metrics and result files.references/troubleshooting.mdcovers forecasting-specific data/window/channel/model errors.scripts/build_tslib_command.pyrenders safe starter commands for long-term, M4, TimeXer, and zero-shot workflows.../../references/model-catalog.mdmaps model names to optional dependency surfaces.
Avoid
- Do not treat zero-shot LTSM source files as verified just because core TSLib imports work.
- Do not run M4 or long-horizon benchmark scripts as a smoke check; use tiny data and short windows first.
- Do not use
features MSwithout confirming--targetand output channel expectations.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.