writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
gluontsUse GluonTS for probabilistic time-series forecasting data pipelines, transformations, PyTorch/local models, evaluation, backtesting, shell deployment, and optional adapters.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when a task involves GluonTS time-series forecasting: PandasDataset, ListDataset, DataEntry fields, train/test windows, transformations, Estimator/Predictor, PyTorch forecasting models, forecast evaluation metrics, gluonts.shell, or optional forecasting adapters.
python scripts/check_gluonts_env.py --check-torch --check-shell
For public package installs, use the smallest extra set required by the task:
pip install gluonts
pip install "gluonts[torch]" # PyTorch estimator workflows
pip install "gluonts[shell]" # gluonts.shell train/serve workflows
| Task signal | Read |
|---|---|
| DataFrames, long dataframes, item/static/dynamic columns, list/file datasets, JSON Lines, optional Arrow, or train/test windows | sub-skills/data-pipelines/SKILL.md |
Transformation chains, time features, lag lists, missing-value indicators, samplers, or InstanceSplitter configuration | sub-skills/transforms-features/SKILL.md |
| Estimator/Predictor concepts, local baselines, PyTorch estimators, forecast objects, persistence, CPU/GPU trainer kwargs | sub-skills/forecasting-models/SKILL.md |
make_evaluation_predictions, Evaluator, item metrics, aggregate metrics, backtesting, or gluonts.ev metric questions | sub-skills/evaluation-backtesting/SKILL.md |
python -m gluonts, python -m gluonts.shell, SageMaker-style train/serve payloads, batch transform JSON Lines, or optional extension adapters | sub-skills/deployment-extensions/SKILL.md |
| Cross-cutting install/import/data/backend problems | references/troubleshooting.md |
Use this sequence for end-to-end forecasting tasks:
PandasDataset or ListDataset using the data-pipelines sub-skill.split(dataset, offset=-prediction_length) or a date-based split.predictor.predict(...) or make_evaluation_predictions(...).Evaluator or backtest_metrics and inspect item metrics before trusting aggregates.| Helper | Use |
|---|---|
scripts/check_gluonts_env.py | Imports GluonTS core and selected optional extras; can report optional CUDA availability. |
sub-skills/data-pipelines/scripts/dataset_split_smoke.py | Validates PandasDataset + split behavior on deterministic local data. |
sub-skills/transforms-features/scripts/transform_feature_smoke.py | Validates missing-value indicators, time features, lags, and instance splitting. |
sub-skills/forecasting-models/scripts/predictor_persistence_smoke.py | Serializes/reloads a local predictor and compares deterministic forecasts. |
sub-skills/forecasting-models/scripts/torch_forecast_smoke.py | Checks PyTorch estimator construction and, when requested, a tiny bounded train/predict path. |
sub-skills/evaluation-backtesting/scripts/evaluate_synthetic_forecast.py | Runs a deterministic forecast evaluation/backtest smoke and optional item-metrics CSV output. |
sub-skills/deployment-extensions/scripts/shell_payload_validator.py | Validates SageMaker-style JSON inference payloads before shell/serve use. |