Skip to content

Defaults, steady level ​

match ← All flat growth benchmarks

96 days hovering around one value. Weekly seasonality switches on automatically.

Input ​

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

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-04-0634.998334.99831.2e-11
2020-04-0735.006135.00611.2e-11
2020-04-0835.002535.00251.2e-11
2020-04-0935.002335.00231.2e-11
2020-04-1035.001435.00141.2e-11
2020-04-1135.000435.00041.2e-11
2020-04-1234.999534.99951.2e-11
2020-04-1334.998334.99831.2e-11
2020-04-1435.006135.00611.2e-11
2020-04-1535.002535.00251.2e-11
2020-04-1635.002335.00231.2e-11
2020-04-1735.001435.00141.2e-11
2020-04-1835.000435.00041.2e-11
2020-04-1934.999534.99951.2e-11
2020-04-2034.998334.99831.2e-11
2020-04-2135.006135.00611.2e-11
2020-04-2235.002535.00251.2e-11
2020-04-2335.002335.00231.2e-11
2020-04-2435.001435.00141.2e-11
2020-04-2535.000435.00041.2e-11
2020-04-2634.999534.99951.2e-11
2020-04-2734.998334.99831.2e-11
2020-04-2835.006135.00611.2e-11
2020-04-2935.002535.00251.2e-11

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows16 µs490 µs30× faster
Fit2.93 ms9.11 ms3.1× faster
Predict231 µs3.02 ms13× faster
Fit and predict1.86 ms11.4 ms6.1× faster
Convert, fit and predict1.41 ms12.1 ms8.6× faster
First forecast in a new process169 ms1.42 s8.4× faster
Save model to JSON24 µs467 µs19× faster
Load model from JSON115 µs2.19 ms19× faster
Load and predict in a new process152 ms1.40 s9.2× 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.