Skip to content

Releases

v0.4.0

Choose a tag to compare

@drds1 drds1 released this 03 Nov 21:45

What's new

  • Evolving seasonality. When a seasonal pattern drifts from cycle to cycle, Divinity now detects it and switches to seasonal ARIMA errors for that period, so forecasts follow the recent shape. This applies to integer periods of up to 48 steps with at least six cycles of data. Turn it off with Forecaster(evolving_seasonality=False).
  • Comparison with other forecasters. The README now compares Divinity with Prophet, statsforecast AutoARIMA and AutoETS, seasonal naive and naive on 600 M4 series. Divinity has the lowest average MASE and the best interval score. Full results are in benchmarks/comparison.md.
  • Citation. Added CITATION.cff (GitHub's "Cite this repository" button) and a NOTICE file.

Compatibility

  • Requires Python 3.11 or later (Python 3.10 has reached end of life). Tested on 3.11 to 3.15.
  • Users on Python 3.10 will keep getting 0.3.0 from pip.

Removed

  • The old documentation pages, the scratch/ folder and the Docker image. The README is now the only documentation.

Full changelog: v0.3.0...v0.4.0

v0.3.0

Choose a tag to compare

@drds1 drds1 released this 01 Nov 17:56

Practical applications, example datasets and fitting safeguards.

  • divinity.datasets with real series (Mauna Loa CO₂, sunspots, El Niño sea temperature, US macroeconomics) and seeded simulated business series (retail sales, web traffic, revenue, a faulty sensor)
  • README section and new notebook covering nine practical applications, from stock planning to anomaly detection
  • Degenerate ARIMA fits are now rejected in favour of the next best order (fixes absurdly wide intervals on some series)
  • A drift is kept for differenced series when the data support it, so trending series like CO₂ keep their growth
  • highlight= option on plot for marking flagged points

pip install --upgrade divinity-forecast

v0.2.0

Choose a tag to compare

@drds1 drds1 released this 01 Nov 16:51

Rewritten forecaster for current Python and libraries, now published as divinity-forecast (still import divinity).

  • New Forecaster API and one-line forecast(), with dated forecasts
  • Automatic trend, seasonal period and ARIMA selection that is not fooled by noise or random walks
  • Honest prediction intervals, checked over 100 random seeds per scenario (see README)
  • The 0.1 divinity class kept as a deprecated wrapper

pip install divinity-forecast