Skip to content

Observed spillovers and unseen future names ​

match ← All flat growth benchmarks

96 daily rows from 2010; sparse prediction years 2021 and 2060. December 31's observed New Year's Day is retained while unseen Juneteenth names are ignored.

Input ​

benchmark/inputs/v5/country-boundary-96.json: 96 history rows and 4 forecast rows.

Output ​

Largest difference: 5.2e-12 (< 0.0001% of the input's range).

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2021-06-1820.015820.01584.1e-12
2021-06-1920.015820.01584.1e-12
2021-12-3120.015820.01582.5e-12
2060-01-0123.035023.03505.2e-12

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows13 µs469 µs35× faster
Fit23.1 ms67.1 ms2.9× faster
Predict223 µs5.26 ms24× faster
Fit and predict21.9 ms72.7 ms3.3× faster
Convert, fit and predict21.6 ms73.5 ms3.4× faster
First forecast in a new process194 ms1.74 s9.0× faster
Save model to JSON77 µs561 µs7.3× faster
Load model from JSON779 µs3.36 ms4.3× faster
Load and predict in a new process160 ms1.64 s10× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "country-calendar-public-v1"
  },
  "configuration": {
    "growth": "flat",
    "countryHolidays": {
      "country": "US",
      "coverage": "reject-known-gaps",
      "priorScale": 10
    },
    "scaling": "absmax",
    "seasonalityMode": "additive",
    "holidaysMode": "additive",
    "changepoints": {
      "mode": "auto",
      "count": 25,
      "range": 0.8
    },
    "changepointPriorScale": 0.05,
    "seasonalities": [],
    "events": [],
    "regressors": []
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.