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
- 参考文档references/installation-and-optional-dependencies.md3.0 KB
- 参考文档references/model-catalog.md3.7 KB
- 参考文档references/repo-provenance.md3.3 KB
- 参考文档references/repo-routing-metadata.json495 B
- 参考文档references/troubleshooting.md6.1 KB
- 脚本scripts/core_forecasting_smoke.py1.4 KB
- 脚本scripts/darts_doctor.py1.8 KB
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-dataforTimeSeries.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-covariatesforMissingValuesFiller,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-workflowsfor 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-modelsfordarts[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-detectionforKMeansScorer, PyOD scorers,QuantileDetector, threshold/IQR detectors, aggregators,ForecastingAnomalyModel, and score-vs-binary-output semantics. - Evaluate forecasts or explain models: use
evaluation-and-explainabilityfor 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, thendata-processing-and-covariatesif values must be filled/scaled or covariates generated. - Baseline forecast →
forecasting-workflowsfirst; addevaluation-and-explainabilityfor metric/reporting details. - Neural forecast request → verify
darts[torch]withtorch-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.mdandreferences/troubleshooting.md.
Shared references
references/model-catalog.mdmaps model families to install extras and sub-skill owners.references/installation-and-optional-dependencies.mdrecords install variants, optional dependency boundaries, and backend evidence.references/troubleshooting.mdcovers cross-cutting install/import, optional dependency, data, plotting, and backend failures.references/repo-provenance.mdrecords the source commit and evidence baseline for refresh decisions.
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
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).