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
Install
logicpacks pack use data-science-public/time-series-forecastget_pack data-science-public/time-series-forecastThe 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
- Put the series in period order.
- Run forecast.py; it scores each baseline on the last --holdout points.
- 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)
python-stdlib:code/forecast.py(no install).