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 rows15 µs455 µs30× faster
Fit2.22 ms8.96 ms4.0× faster
Predict213 µs3.08 ms14× faster
Fit and predict1.82 ms12.1 ms6.6× faster
Convert, fit and predict1.45 ms12.4 ms8.5× faster
First forecast in a new process164 ms1.42 s8.7× faster
Save model to JSON26 µs446 µs17× faster
Load model from JSON94 µs2.25 ms24× faster
Load and predict in a new process153 ms1.42 s9.3× 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.