Skip to content

Defaults, eight months of daily data ​

match ← All linear growth benchmarks

256 days of history. Over 100 rows, so both libraries fit with L-BFGS instead of Newton.

Input ​

benchmark/inputs/v1/linear-medium.json: 256 history rows and 64 forecast rows.

Output ​

Largest difference: 0.0018 (0.0018% of the input's range).

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-09-13107.7958107.79540.00045
2020-09-14107.5631107.56270.00045
2020-09-15108.3425108.34200.00047
2020-09-16109.9333109.93280.00052
2020-09-17111.5460111.54550.00054
2020-09-18112.3359112.33530.00055
2020-09-19112.0778112.07720.00057
2020-09-20111.3662111.36560.00060
2020-09-21111.1336111.13300.00059
2020-09-22111.9129111.91230.00062
2020-09-23113.5037113.50300.00067
2020-09-24115.1164115.11570.00069
2020-09-25115.9063115.90560.00070
2020-09-26115.6482115.64750.00072
2020-09-27114.9366114.93590.00075
2020-09-28114.7040114.70330.00074
2020-09-29115.4833115.48250.00077
2020-09-30117.0741117.07330.00082
2020-10-01118.6868118.68600.00083
2020-10-02119.4767119.47590.00085
2020-10-03119.2186119.21780.00087
2020-10-04118.5071118.50620.00090
2020-10-05118.2744118.27350.00089
2020-10-06119.0537119.05280.00092
2020-10-07120.6445120.64360.00096
2020-10-08122.2573122.25630.00098
2020-10-09123.0471123.04610.0010
2020-10-10122.7890122.78800.0010
2020-10-11122.0775122.07650.0010
2020-10-12121.8448121.84380.0010
2020-10-13122.6242122.62310.0011
2020-10-14124.2150124.21390.0011
2020-10-15125.8277125.82660.0011
2020-10-16126.6176126.61640.0011
2020-10-17126.3595126.35830.0012
2020-10-18125.6479125.64670.0012
2020-10-19125.4153125.41410.0012
2020-10-20126.1946126.19340.0012
2020-10-21127.7854127.78410.0013
2020-10-22129.3981129.39680.0013
2020-10-23130.1880130.18670.0013
2020-10-24129.9299129.92860.0013
2020-10-25129.2183129.21700.0013
2020-10-26128.9857128.98440.0013
2020-10-27129.7650129.76360.0014
2020-10-28131.3558131.35440.0014
2020-10-29132.9685132.96710.0014
2020-10-30133.7584133.75700.0014
2020-10-31133.5003133.49890.0015
2020-11-01132.7888132.78730.0015
2020-11-02132.5561132.55460.0015
2020-11-03133.3354133.33390.0015
2020-11-04134.9262134.92470.0016
2020-11-05136.5390136.53740.0016
2020-11-06137.3288137.32720.0016
2020-11-07137.0707137.06910.0016
2020-11-08136.3592136.35760.0016
2020-11-09136.1265136.12490.0016
2020-11-10136.9058136.90420.0017
2020-11-11138.4967138.49500.0017
2020-11-12140.1094140.10770.0017
2020-11-13140.8993140.89750.0017
2020-11-14140.6412140.63940.0018
2020-11-15139.9296139.92780.0018

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows40 µs556 µs14× faster
Fit26.9 ms87.4 ms3.2× faster
Predict316 µs3.28 ms10× faster
Fit and predict26.2 ms89.5 ms3.4× faster
Convert, fit and predict26.1 ms91.3 ms3.5× faster
First forecast in a new process193 ms1.51 s7.8× faster
Save model to JSON29 µs583 µs20× faster
Load model from JSON157 µs2.35 ms15× faster
Load and predict in a new process155 ms1.44 s9.3× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "linear-output-first-v4"
  },
  "fitRequest": "growth-only",
  "configuration": {
    "growth": "linear",
    "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.