Skip to content

Defaults, weekly pattern ​

match ← All flat growth benchmarks

96 days around one level with a clear weekly rhythm.

Input ​

benchmark/inputs/v1/flat-seasonal.json: 96 history rows and 24 forecast rows.

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-04-0633.633433.63341.0e-10
2020-04-0733.911533.91158.2e-11
2020-04-0835.002535.00251.0e-12
2020-04-0936.096836.09688.4e-11
2020-04-1036.366336.36631.1e-10
2020-04-1135.607935.60794.8e-11
2020-04-1234.392134.39214.7e-11
2020-04-1333.633433.63341.0e-10
2020-04-1433.911533.91158.2e-11
2020-04-1535.002535.00251.0e-12
2020-04-1636.096836.09688.4e-11
2020-04-1736.366336.36631.1e-10
2020-04-1835.607935.60794.8e-11
2020-04-1934.392134.39214.7e-11
2020-04-2033.633433.63341.0e-10
2020-04-2133.911533.91158.2e-11
2020-04-2235.002535.00251.0e-12
2020-04-2336.096836.09688.4e-11
2020-04-2436.366336.36631.1e-10
2020-04-2535.607935.60794.8e-11
2020-04-2634.392134.39214.7e-11
2020-04-2733.633433.63341.0e-10
2020-04-2833.911533.91158.2e-11
2020-04-2935.002535.00251.0e-12

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows20 µs467 µs24× faster
Fit106 ms386 ms3.6× faster
Predict231 µs3.04 ms13× faster
Fit and predict104 ms395 ms3.8× faster
Convert, fit and predict106 ms389 ms3.7× faster
First forecast in a new process292 ms1.82 s6.2× faster
Save model to JSON29 µs429 µs15× faster
Load model from JSON104 µs2.15 ms21× faster
Load and predict in a new process152 ms1.43 s9.4× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "flat-growth-reduced-v1"
  },
  "fitRequest": "growth-only",
  "configuration": {
    "growth": "flat",
    "scaling": "absmax",
    "seasonalityMode": "additive",
    "holidaysMode": "additive",
    "changepoints": {
      "mode": "auto",
      "count": 25,
      "range": 0.8
    },
    "changepointPriorScale": 0.05,
    "seasonalities": [
      {
        "name": "weekly",
        "periodDays": 7,
        "fourierOrder": 3,
        "priorScale": 10
      }
    ],
    "events": [],
    "regressors": []
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.