DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to get a probabilistic forecast in a few lines with Darts

Build a TimeSeries from a DataFrame, fit a model and predict with sampled uncertainty.

Short answer: 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). All steps.

  • Top pick
  • Data and analytics
  • Beginner
  • 30 minutes
  • From the README
  • Claude Code
  • Codex
  • Cursor
  • Gemini CLI

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

  1. Install it with pip install darts
  2. Create the series with TimeSeries.from_dataframe, naming the time column and the value column
  3. Split it, for example with train, val = series[:-36], series[-36:], then fit ExponentialSmoothing and call model.predict(len(val), num_samples=1000)
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer