Skip to content

100 rows: just over the optimizer switch ​

match ← All logistic growth benchmarks

Exactly 100 rows, so both libraries switch to L-BFGS.

Input ​

benchmark/inputs/v2/logistic-basic-100.json: 100 history rows and 124 forecast rows.

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-01-0114.187414.18742.8e-11
2020-01-0214.698114.69812.9e-11
2020-01-0315.224115.22412.9e-11
2020-01-0415.765615.76563.0e-11
2020-01-0516.322816.32283.1e-11
2020-01-0616.895916.89593.2e-11
2020-01-0717.485217.48523.2e-11
2020-01-0818.090818.09083.3e-11
2020-01-0918.712818.71283.4e-11
2020-01-1019.351419.35143.4e-11
2020-01-1120.006720.00673.5e-11
2020-01-1220.678820.67883.6e-11
2020-01-1321.367821.36783.6e-11
2020-01-1422.073722.07373.7e-11
2020-01-1522.796622.79663.8e-11
2020-01-1623.536423.53643.8e-11
2020-01-1724.293224.29323.9e-11
2020-01-1825.066825.06684.0e-11
2020-01-1925.857225.85724.0e-11
2020-01-2026.664226.66424.1e-11
2020-01-2127.487727.48774.1e-11
2020-01-2228.327528.32754.2e-11
2020-01-2329.183329.18334.2e-11
2020-01-2430.055030.05504.3e-11
2020-01-2530.942130.94214.3e-11
2020-01-2631.844531.84454.4e-11
2020-01-2732.761632.76164.4e-11
2020-01-2833.693233.69324.5e-11
2020-01-2934.638734.63874.5e-11
2020-01-3035.597735.59774.5e-11
2020-01-3136.569836.56984.6e-11
2020-02-0137.554237.55424.6e-11
2020-02-0238.550538.55054.6e-11
2020-02-0339.558139.55814.6e-11
2020-02-0440.576340.57634.6e-11
2020-02-0541.604541.60454.7e-11
2020-02-0642.641942.64194.7e-11
2020-02-0743.687943.68794.7e-11
2020-02-0844.741644.74164.7e-11
2020-02-0945.802645.80264.7e-11
2020-02-1046.869746.86974.7e-11
2020-02-1147.942347.94234.6e-11
2020-02-1249.019549.01954.6e-11
2020-02-1350.100550.10054.6e-11
2020-02-1451.184451.18444.6e-11
2020-02-1552.270452.27044.6e-11
2020-02-1653.357653.35764.5e-11
2020-02-1754.445254.44524.5e-11
2020-02-1855.532355.53234.5e-11
2020-02-1956.618156.61814.4e-11
2020-02-2057.701857.70184.4e-11
2020-02-2158.782458.78244.3e-11
2020-02-2259.859259.85924.3e-11
2020-02-2360.931460.93144.2e-11
2020-02-2461.998261.99824.1e-11
2020-02-2563.058863.05884.1e-11
2020-02-2664.112464.11244.0e-11
2020-02-2765.158465.15844.0e-11
2020-02-2866.196166.19613.9e-11
2020-02-2967.224767.22473.8e-11
2020-03-0168.243668.24363.8e-11
2020-03-0269.252369.25233.7e-11
2020-03-0370.250170.25013.6e-11
2020-03-0471.236571.23653.5e-11
2020-03-0572.211072.21103.5e-11
2020-03-0673.173173.17313.4e-11
2020-03-0774.122374.12233.3e-11
2020-03-0875.058375.05833.2e-11
2020-03-0975.980675.98063.1e-11
2020-03-1076.888976.88893.1e-11
2020-03-1177.783077.78303.0e-11
2020-03-1278.662478.66242.9e-11
2020-03-1379.527179.52712.8e-11
2020-03-1480.376780.37672.7e-11
2020-03-1581.211281.21122.7e-11
2020-03-1682.030382.03032.6e-11
2020-03-1782.833982.83392.5e-11
2020-03-1883.622083.62202.4e-11
2020-03-1984.394584.39452.4e-11
2020-03-2085.151485.15142.3e-11
2020-03-2185.892785.89272.2e-11
2020-03-2286.618486.61842.1e-11
2020-03-2387.328587.32852.1e-11
2020-03-2488.023188.02312.0e-11
2020-03-2588.702488.70241.9e-11
2020-03-2689.366389.36631.9e-11
2020-03-2790.015190.01511.8e-11
2020-03-2890.648990.64891.7e-11
2020-03-2991.267991.26791.7e-11
2020-03-3091.872191.87211.6e-11
2020-03-3192.461992.46191.5e-11
2020-04-0193.037593.03751.5e-11
2020-04-0293.598993.59891.4e-11
2020-04-0394.146594.14651.4e-11
2020-04-0494.680594.68051.3e-11
2020-04-0595.201195.20111.3e-11
2020-04-0695.708695.70861.2e-11
2020-04-0796.203396.20331.2e-11
2020-04-0896.685396.68531.1e-11
2020-04-0997.155097.15501.1e-11
2020-04-1097.612697.61261.0e-11
2020-04-1198.058398.05839.8e-12
2020-04-1298.492698.49269.3e-12
2020-04-1398.915598.91559.0e-12
2020-04-1499.327599.32758.6e-12
2020-04-1599.728799.72878.2e-12
2020-04-16100.1194100.11947.8e-12
2020-04-17100.5000100.50007.5e-12
2020-04-18100.8706100.87067.2e-12
2020-04-19101.2316101.23166.8e-12
2020-04-20101.5831101.58316.5e-12
2020-04-21101.9255101.92556.2e-12
2020-04-22102.2591102.25915.9e-12
2020-04-23102.5840102.58405.6e-12
2020-04-24102.9005102.90055.4e-12
2020-04-25103.2089103.20895.2e-12
2020-04-26103.5094103.50944.9e-12
2020-04-27103.8022103.80224.7e-12
2020-04-28104.0876104.08764.4e-12
2020-04-29104.3658104.36584.2e-12
2020-04-30104.6371104.63714.0e-12
2020-05-01104.9015104.90153.8e-12
2020-05-02105.1595105.15953.6e-12
2020-05-03105.4111105.41113.4e-12

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit1.85 ms7.74 ms4.2× faster
Predict819 µs3.29 ms4.0× faster
Save model to JSON27 µs473 µs18× faster
Load model from JSON157 µs2.31 ms15× faster
Load and predict in a new process153 ms1.57 s10× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "logistic-python-reconciliation-v1"
  },
  "configuration": {
    "growth": "logistic",
    "scaling": "absmax",
    "seasonalityMode": "additive",
    "holidaysMode": "additive",
    "changepoints": {
      "mode": "explicit",
      "timestamps": [
        "2020-02-08T00:00:00.000Z"
      ]
    },
    "changepointPriorScale": 0.05,
    "seasonalities": [],
    "events": [],
    "regressors": []
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.