What do you want to do?
3 use cases
-
Get a probabilistic forecast in a few lines
Build a TimeSeries from a DataFrame, fit a model and predict with sampled uncertainty.
View prompt
Using unit8co/darts, load <my CSV> with TimeSeries.from_dataframe, hold out the last 36 points, fit ExponentialSmoothing with 1000 samples and save a chart with the 5th and 95th percentiles.
-
Flag anomalies in a multivariate series
Score a series with a k-means anomaly scorer and turn the scores into binary anomaly flags.
View prompt
With unit8co/darts, build a KMeansScorer and QuantileDetector pipeline over <my metric series> and list the timestamps it flags as anomalies.
-
Compare many models on the same series fairly
Use the shared interface, metrics and backtesting utilities to rank models on historical forecasts.
View prompt
Using unit8co/darts, backtest ARIMA and a deep model on <my series> with moving windows, report the metrics side by side and say which one I should ship.
Quick start with Darts
- Check you have what it needs: Python 3.11 or newer, ideally in a clean environment; `pip install darts`; Your series as a pandas DataFrame or one of the supported backends.
- Open unit8co/darts on GitHub and read the README and license.
- Install it with
pip install darts - Create the series with TimeSeries.from_dataframe, naming the time column and the value column
- Split it, for example with
train, val = series[:-36], series[-36:], then fit ExponentialSmoothing and call model.predict(len(val), num_samples=1000) - Plot with series.plot() and prediction.plot(label="forecast", low_quantile=0.05, high_quantile=0.95)
These steps come from our top use case, Get a probabilistic forecast in a few lines, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for unit8co/darts
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forData scientists who want to compare many forecasting models without rewriting their code each time.
- Why it is hot9.6k stars, picked up by one AI source we track
- LanguagePython
- Sourcegithub.com/unit8co/darts ยท Back to Hot repos
Requirements
- Python 3.11 or newer, ideally in a clean environment
- `pip install darts`
- Your series as a pandas DataFrame or one of the supported backends
Add this badge to your README
Maintain Darts? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/unit8co-darts/?utm_source=github&utm_medium=badge&utm_campaign=unit8co-darts)
HTML
<a href="https://dedupedai.com/use-cases/unit8co-darts/?utm_source=github&utm_medium=badge&utm_campaign=unit8co-darts"><img src="https://dedupedai.com/badge/unit8co/darts.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Darts
What is Darts?
Darts is a Python library for forecasting and anomaly detection on time series. Every forecasting model, from ARIMA to N-BEATS, uses the same fit and predict interface, like scikit-learn. It supports univariate and multivariate series, training one model on many series, probabilistic forecasts, past and future covariates, backtesting, and a darts.ad module of anomaly scorers and detectors including a PyODScorer. It is an open-source project on GitHub: https://github.com/unit8co/darts.
How do I use Darts?
Install it with pip install darts; then create the series with TimeSeries.from_dataframe, naming the time column and the value column; Split it, for example with train, val = series[:-36], series[-36:], then fit ExponentialSmoothing and call model.predict(len(val), num_samples=1000). The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Darts for?
Data scientists who want to compare many forecasting models without rewriting their code each time.
What can I do with Darts?
3 use cases so far, for example: Get a probabilistic forecast in a few lines; Flag anomalies in a multivariate series; Compare many models on the same series fairly. Each has steps and a copy-paste agent prompt.
What do I need to run Darts?
Python 3.11 or newer, ideally in a clean environment; `pip install darts`; Your series as a pandas DataFrame or one of the supported backends.
What are alternatives to Darts?
Other hot AI repos in Data and analytics: Chronos Forecasting, Crawlee Python, DLT, Timesfm, Ultralytics.
Is Darts safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.