Skip to content

Observed spillovers and unseen future names ​

match ← All linear 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: 1.9e-9 (< 0.0001% of the input's range).

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2021-06-1822.491722.49174.2e-10
2021-06-1922.492322.49234.2e-10
2021-12-3122.610422.61044.4e-10
2060-01-0133.938533.93851.9e-9

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows14 µs474 µs34× faster
Fit6.44 ms20.7 ms3.2× faster
Predict217 µs5.31 ms24× faster
Fit and predict5.50 ms27.2 ms4.9× faster
Convert, fit and predict5.13 ms28.4 ms5.5× faster
First forecast in a new process173 ms1.62 s9.4× faster
Save model to JSON81 µs537 µs6.7× faster
Load model from JSON956 µs3.37 ms3.5× faster
Load and predict in a new process159 ms1.58 s9.9× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "country-calendar-public-v1"
  },
  "configuration": {
    "growth": "linear",
    "countryHolidays": {
      "country": "US",
      "coverage": "reject-known-gaps",
      "priorScale": 10
    },
    "scaling": "absmax",
    "seasonalityMode": "additive",
    "holidaysMode": "additive",
    "changepoints": {
      "mode": "auto",
      "count": 2,
      "range": 0.8
    },
    "changepointPriorScale": 0.05,
    "seasonalities": [],
    "events": [],
    "regressors": []
  },
  "effectOptimizer": {
    "algorithm": "auto",
    "maxIterations": 10000,
    "fallback": "newton",
    "lbfgs": {
      "historySize": 5,
      "initAlpha": 0.001,
      "tolObj": 1e-12,
      "tolRelObj": 10000,
      "tolGrad": 1e-8,
      "tolRelGrad": 10000000,
      "tolParam": 1e-8
    }
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.