Skip to content

Packs / data-science-public

time-series-forecast

forecast the next periods of a series with moving average and simple exponential smoothing baselines, scored by MAE

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-data-science-public

Install

logicpacks pack use data-science-public/time-series-forecast
get_pack data-science-public/time-series-forecast

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: python-stdlib
  • Checks: 1 in outcome/checks.yaml
  • Code: forecast.py
  • Tools: python3

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

Forecast the next periods of a series with moving average and simple exponential smoothing baselines, scored by MAE.

Steps

  1. Put the series in period order.
  2. Run forecast.py; it scores each baseline on the last --holdout points.
  3. Use the best baseline, or beat it with a fancier model before trusting that model.

Edge cases

  • Strong seasonality: use a seasonal naive baseline (same period last cycle).
  • Short series (< 2x holdout) give unreliable scores.

Don'ts

  • Don't report a forecast without its holdout error.

Routes (free first)

  1. python-stdlib: code/forecast.py (no install).