Skip to content

Defaults, negative values ​

match ← All flat growth benchmarks

96 days around a level below zero.

Input ​

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

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-04-06-35.0017-35.00171.1e-11
2020-04-07-34.9939-34.99391.1e-11
2020-04-08-34.9975-34.99751.1e-11
2020-04-09-34.9977-34.99771.1e-11
2020-04-10-34.9986-34.99861.1e-11
2020-04-11-34.9996-34.99961.1e-11
2020-04-12-35.0005-35.00051.1e-11
2020-04-13-35.0017-35.00171.1e-11
2020-04-14-34.9939-34.99391.1e-11
2020-04-15-34.9975-34.99751.1e-11
2020-04-16-34.9977-34.99771.1e-11
2020-04-17-34.9986-34.99861.1e-11
2020-04-18-34.9996-34.99961.1e-11
2020-04-19-35.0005-35.00051.1e-11
2020-04-20-35.0017-35.00171.1e-11
2020-04-21-34.9939-34.99391.1e-11
2020-04-22-34.9975-34.99751.1e-11
2020-04-23-34.9977-34.99771.1e-11
2020-04-24-34.9986-34.99861.1e-11
2020-04-25-34.9996-34.99961.1e-11
2020-04-26-35.0005-35.00051.1e-11
2020-04-27-35.0017-35.00171.1e-11
2020-04-28-34.9939-34.99391.1e-11
2020-04-29-34.9975-34.99751.1e-11

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows13 µs469 µs35× faster
Fit1.83 ms8.82 ms4.8× faster
Predict260 µs3.11 ms12× faster
Fit and predict1.58 ms12.1 ms7.6× faster
Convert, fit and predict1.47 ms12.7 ms8.7× faster
First forecast in a new process176 ms1.44 s8.2× faster
Save model to JSON39 µs451 µs11× faster
Load model from JSON108 µs2.14 ms20× faster
Load and predict in a new process161 ms1.45 s9.0× 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.