Who it is forAn analyst with a CSV who needs a forecast and a confidence band.
The problemStitching together statsmodels and plotting code takes longer than the forecast is worth.
The outcomeA forecast with median and percentile bands plotted over the history.
What you need first
- 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
Steps
- 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)
Prompt for your agent
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.
Caveat. The README recommends a clean Python 3.11 or newer environment before installing.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for unit8co/darts and "Get a probabilistic forecast in a few lines"
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 freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer