Skip to content

Values far from zero, minmax scaling ​

match ← All linear growth benchmarks

The same data scaled to the 0–1 range using its minimum and maximum.

Input ​

benchmark/inputs/v1/linear-offset-scaling.json: 96 history rows and 24 forecast rows.

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-04-06110.0815110.08157.2e-13
2020-04-07110.2542110.25424.4e-13
2020-04-08110.5692110.56922.8e-13
2020-04-09110.8822110.88223.7e-13
2020-04-10111.0509111.05096.0e-13
2020-04-11111.0351111.03518.2e-13
2020-04-12110.9358110.93588.5e-13
2020-04-13110.9227110.92276.8e-13
2020-04-14111.0954111.09544.1e-13
2020-04-15111.4104111.41042.6e-13
2020-04-16111.7234111.72343.4e-13
2020-04-17111.8921111.89215.4e-13
2020-04-18111.8763111.87637.7e-13
2020-04-19111.7770111.77708.1e-13
2020-04-20111.7639111.76396.3e-13
2020-04-21111.9366111.93663.6e-13
2020-04-22112.2516112.25162.0e-13
2020-04-23112.5646112.56462.7e-13
2020-04-24112.7333112.73335.1e-13
2020-04-25112.7175112.71757.2e-13
2020-04-26112.6182112.61827.5e-13
2020-04-27112.6051112.60515.8e-13
2020-04-28112.7778112.77783.1e-13
2020-04-29113.0928113.09281.8e-13

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows16 µs437 µs28× faster
Fit5.41 ms24.3 ms4.5× faster
Predict180 µs3.14 ms17× faster
Fit and predict5.28 ms26.7 ms5.1× faster
Convert, fit and predict5.65 ms26.9 ms4.8× faster
First forecast in a new process179 ms1.49 s8.3× faster
Save model to JSON20 µs409 µs21× faster
Load model from JSON110 µs2.15 ms20× faster
Load and predict in a new process153 ms1.43 s9.3× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "linear-output-first-v4"
  },
  "configuration": {
    "growth": "linear",
    "scaling": "minmax",
    "seasonalityMode": "additive",
    "holidaysMode": "additive",
    "changepoints": {
      "mode": "explicit",
      "timestamps": [
        "2020-02-10T00:00:00.000Z"
      ]
    },
    "changepointPriorScale": 0.2,
    "seasonalities": [
      {
        "name": "weekly-custom",
        "periodDays": 7,
        "fourierOrder": 2,
        "priorScale": 10
      }
    ],
    "events": [],
    "regressors": []
  },
  "effectOptimizer": {
    "algorithm": "auto",
    "maxIterations": 10000,
    "fallback": "newton",
    "lbfgs": {
      "historySize": 5,
      "initAlpha": 0.001,
      "tolObj": 1e-12,
      "tolRelObj": 10000,
      "tolGrad": 1e-8,
      "tolRelGrad": 10000000,
      "tolParam": 1e-8
    }
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.