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 rows15 µs444 µs29× faster
Fit21.8 ms65.4 ms3.0× faster
Predict314 µs5.26 ms17× faster
Fit and predict21.5 ms71.3 ms3.3× faster
Convert, fit and predict21.3 ms72.2 ms3.4× faster
First forecast in a new process227 ms1.65 s7.3× faster
Save model to JSON135 µs529 µs3.9× faster
Load model from JSON1.44 ms3.28 ms2.3× faster
Load and predict in a new process188 ms1.57 s8.4× 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.