Skip to content

99 rows: just under the optimizer switch ​

match ← All logistic growth benchmarks

One row short of 100, so both libraries fit with Newton's method.

Input ​

benchmark/inputs/v2/logistic-basic-99.json: 99 history rows and 123 forecast rows.

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-01-0114.187014.18702.5e-11
2020-01-0214.702914.70292.6e-11
2020-01-0315.234415.23442.6e-11
2020-01-0415.781715.78172.7e-11
2020-01-0516.345016.34502.7e-11
2020-01-0616.924616.92462.8e-11
2020-01-0717.520717.52072.8e-11
2020-01-0818.133318.13332.9e-11
2020-01-0918.762818.76283.0e-11
2020-01-1019.409219.40923.0e-11
2020-01-1120.072720.07273.1e-11
2020-01-1220.753320.75333.1e-11
2020-01-1321.451121.45113.2e-11
2020-01-1422.166222.16623.2e-11
2020-01-1522.898622.89863.3e-11
2020-01-1623.648223.64823.3e-11
2020-01-1724.415224.41523.4e-11
2020-01-1825.199325.19933.4e-11
2020-01-1926.000426.00043.4e-11
2020-01-2026.818526.81853.5e-11
2020-01-2127.653427.65343.5e-11
2020-01-2228.504928.50493.6e-11
2020-01-2329.372629.37263.6e-11
2020-01-2430.256430.25643.6e-11
2020-01-2531.156031.15603.6e-11
2020-01-2632.070932.07093.7e-11
2020-01-2733.000933.00093.7e-11
2020-01-2833.945433.94543.7e-11
2020-01-2934.904034.90403.7e-11
2020-01-3035.876235.87623.7e-11
2020-01-3136.861536.86153.8e-11
2020-02-0137.859337.85933.8e-11
2020-02-0238.869038.86903.8e-11
2020-02-0339.890039.89003.8e-11
2020-02-0440.921640.92163.8e-11
2020-02-0541.963141.96313.8e-11
2020-02-0643.013743.01373.8e-11
2020-02-0744.072844.07283.7e-11
2020-02-0845.139545.13953.7e-11
2020-02-0946.213146.21313.7e-11
2020-02-1047.292647.29263.7e-11
2020-02-1148.377448.37743.7e-11
2020-02-1249.466549.46653.6e-11
2020-02-1350.559150.55913.6e-11
2020-02-1451.654351.65433.6e-11
2020-02-1552.751252.75123.5e-11
2020-02-1653.848953.84893.5e-11
2020-02-1754.946654.94663.4e-11
2020-02-1856.043456.04343.4e-11
2020-02-1957.138457.13843.3e-11
2020-02-2058.230858.23083.3e-11
2020-02-2159.319659.31963.2e-11
2020-02-2260.404160.40413.2e-11
2020-02-2361.483461.48343.1e-11
2020-02-2462.556862.55683.1e-11
2020-02-2563.623463.62343.0e-11
2020-02-2664.682564.68252.9e-11
2020-02-2765.733465.73342.9e-11
2020-02-2866.775366.77532.8e-11
2020-02-2967.807767.80772.7e-11
2020-03-0168.829768.82972.7e-11
2020-03-0269.841069.84102.6e-11
2020-03-0370.840770.84072.5e-11
2020-03-0471.828571.82852.5e-11
2020-03-0572.803872.80382.4e-11
2020-03-0673.766173.76612.3e-11
2020-03-0774.715174.71512.2e-11
2020-03-0875.650275.65022.2e-11
2020-03-0976.571176.57112.1e-11
2020-03-1077.477677.47762.0e-11
2020-03-1178.369378.36932.0e-11
2020-03-1279.245979.24591.9e-11
2020-03-1380.107280.10721.8e-11
2020-03-1480.953180.95311.8e-11
2020-03-1581.783481.78341.7e-11
2020-03-1682.597982.59791.6e-11
2020-03-1783.396583.39651.6e-11
2020-03-1884.179384.17931.5e-11
2020-03-1984.946184.94611.4e-11
2020-03-2085.697085.69701.4e-11
2020-03-2186.432086.43201.3e-11
2020-03-2287.151187.15111.3e-11
2020-03-2387.854487.85441.2e-11
2020-03-2488.541988.54191.2e-11
2020-03-2589.213989.21391.1e-11
2020-03-2689.870389.87031.1e-11
2020-03-2790.511490.51141.0e-11
2020-03-2891.137491.13749.5e-12
2020-03-2991.748391.74839.1e-12
2020-03-3092.344592.34458.6e-12
2020-03-3192.926192.92618.2e-12
2020-04-0193.493393.49337.8e-12
2020-04-0294.046494.04647.4e-12
2020-04-0394.585594.58557.0e-12
2020-04-0495.111095.11106.6e-12
2020-04-0595.623295.62326.2e-12
2020-04-0696.122296.12225.9e-12
2020-04-0796.608396.60835.6e-12
2020-04-0897.081897.08185.2e-12
2020-04-0997.543097.54304.9e-12
2020-04-1097.992197.99214.6e-12
2020-04-1198.429598.42954.3e-12
2020-04-1298.855398.85534.1e-12
2020-04-1399.270099.27003.8e-12
2020-04-1499.673799.67373.5e-12
2020-04-15100.0667100.06673.3e-12
2020-04-16100.4494100.44943.1e-12
2020-04-17100.8220100.82202.9e-12
2020-04-18101.1847101.18472.7e-12
2020-04-19101.5379101.53792.5e-12
2020-04-20101.8818101.88182.3e-12
2020-04-21102.2166102.21662.1e-12
2020-04-22102.5427102.54271.9e-12
2020-04-23102.8603102.86031.8e-12
2020-04-24103.1696103.16961.6e-12
2020-04-25103.4709103.47091.5e-12
2020-04-26103.7644103.76441.4e-12
2020-04-27104.0504104.05041.2e-12
2020-04-28104.3291104.32911.1e-12
2020-04-29104.6007104.60071.0e-12
2020-04-30104.8655104.86559.0e-13
2020-05-01105.1236105.12367.8e-13
2020-05-02105.3754105.37547.1e-13

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit16.9 ms26.5 ms1.6× faster
Predict851 µs3.25 ms3.8× faster
Save model to JSON25 µs494 µs20× faster
Load model from JSON129 µs2.36 ms18× faster
Load and predict in a new process158 ms1.59 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.