AGENT SKILL

unit8co-darts

Use Darts for Python time-series construction, preprocessing, forecasting, PyTorch/foundation models, anomaly detection, metrics, and explainability.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
unit8co-darts
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use Darts for Python time-series construction, preprocessing, forecasting, PyTorch/foundation models, anomaly detection, metrics, and explainability.
disable-model-invocation
true

02 资源文件 7

03 SKILL.md 正文

Darts

Use this skill when a task names Darts, darts, u8darts, Unit8 Darts, or asks for Darts-specific time-series forecasting, anomaly detection, preprocessing/covariate, metric, or explainability workflows.

Install and import check

Darts 0.46.1 supports Python 3.10+. Choose the smallest install that matches the user's workflow:

pip install darts                    # core TimeSeries, preprocessing, statistical/regression models, anomaly, metrics
pip install "darts[torch]"           # add PyTorch neural/foundation wrapper infrastructure
pip install "darts[notorch]"         # add Prophet/LightGBM/XGBoost/CatBoost/StatsForecast families
pip install "darts[all]"             # broad install only when the user truly needs both torch and notorch extras
python - <<'PY'
import darts
from darts import TimeSeries
print(darts.__version__)
print(TimeSeries)
PY

For a quick environment diagnosis, run scripts/darts_doctor.py. For a tiny core forecast check without external data, run scripts/core_forecasting_smoke.py.

Route by task

  • Build or inspect time-series data: use time-series-and-data for TimeSeries.from_dataframe(), from_group_dataframe(), date/frequency gaps, multivariate/stochastic shape (time, component, sample), static covariates, slicing, stacking, and export checks.
  • Clean, scale, transform, or build covariates: use data-processing-and-covariates for MissingValuesFiller, Scaler, Pipeline, train-only fitting, inverse transforms, generated calendar covariates, and past/future covariate span validation.
  • Choose and run non-neural forecasting models: use forecasting-workflows for naive/statistical/regression/global models, fit()/predict(), covariate-capable core models, probabilistic prediction, historical forecasts, and model-selection troubleshooting.
  • Use PyTorch or foundation wrappers: use torch-and-foundation-models for darts[torch], TCNModel/N-BEATS/TFT-style models, chunk lengths, trainer kwargs, checkpoint directories, CPU/GPU verification, and foundation wrapper cache/download planning.
  • Score or detect anomalies: use anomaly-detection for KMeansScorer, PyOD scorers, QuantileDetector, threshold/IQR detectors, aggregators, ForecastingAnomalyModel, and score-vs-binary-output semantics.
  • Evaluate forecasts or explain models: use evaluation-and-explainability for deterministic metrics, probabilistic quantile/interval metrics, reductions, anomaly/classification metrics, ShapExplainer, and headless plotting boundaries.

Common starting routes

  • New pandas data → time-series-and-data, then data-processing-and-covariates if values must be filled/scaled or covariates generated.
  • Baseline forecast → forecasting-workflows first; add evaluation-and-explainability for metric/reporting details.
  • Neural forecast request → verify darts[torch] with torch-and-foundation-models; do not claim CUDA/foundation execution without explicit backend/cache evidence.
  • Anomaly detection request → anomaly-detection; route any residual forecasting model setup back to forecasting or torch.
  • Installation/import or optional dependency errors → root references/installation-and-optional-dependencies.md and references/troubleshooting.md.

Shared references

Boundaries

This is a runtime package-use skill, not a Darts maintainer/release workflow. It does not cover publishing packages, building Docker images, editing CI, running long benchmarks, downloading private datasets, or executing large notebooks. Optional CUDA/GPU/TPU, foundation weight downloads, and heavy model-family extras are documented but not verified by the baseline CPU skill unless a later task proves them in the target environment.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351