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 rows17 µs483 µs29× faster
Fit1.88 ms9.24 ms4.9× faster
Predict280 µs3.14 ms11× faster
Fit and predict1.48 ms12.2 ms8.3× faster
Convert, fit and predict1.39 ms12.7 ms9.1× faster
First forecast in a new process172 ms1.46 s8.5× faster
Save model to JSON34 µs459 µs14× faster
Load model from JSON118 µs2.16 ms18× faster
Load and predict in a new process164 ms1.44 s8.8× 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.