Skip to content

Three automatic changepoints, absmax scaling ​

match ← All logistic growth benchmarks

96 daily rows rising toward a ceiling of about 100, with a little noise. Prediction covers the history and 24 more days. Changepoints are spread over the first 80% of the history. Values are divided by their largest distance from the floor.

Input ​

benchmark/inputs/v2/logistic-basic-96.json: 96 history rows and 120 forecast rows.

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-01-0114.188214.18822.9e-12
2020-01-0214.720314.72032.8e-12
2020-01-0315.268815.26882.7e-12
2020-01-0415.834215.83422.6e-12
2020-01-0516.416716.41672.5e-12
2020-01-0617.016417.01642.4e-12
2020-01-0717.633717.63372.3e-12
2020-01-0818.268618.26862.2e-12
2020-01-0918.921418.92142.0e-12
2020-01-1019.592219.59221.9e-12
2020-01-1120.281220.28121.7e-12
2020-01-1220.988320.98831.6e-12
2020-01-1321.713821.71381.4e-12
2020-01-1422.457622.45761.2e-12
2020-01-1523.219823.21981.0e-12
2020-01-1624.000324.00037.9e-13
2020-01-1724.799124.79915.6e-13
2020-01-1825.616125.61613.3e-13
2020-01-1926.451126.45119.6e-14
2020-01-2027.304027.30401.6e-13
2020-01-2128.174528.17454.3e-13
2020-01-2229.062529.06257.0e-13
2020-01-2329.967529.96759.7e-13
2020-01-2430.889430.88941.3e-12
2020-01-2531.827731.82771.6e-12
2020-01-2632.782032.78201.9e-12
2020-01-2733.752133.75212.2e-12
2020-01-2834.737234.73722.5e-12
2020-01-2935.736835.73682.9e-12
2020-01-3036.750336.75033.2e-12
2020-01-3137.777237.77723.5e-12
2020-02-0138.816738.81673.9e-12
2020-02-0239.868139.86814.2e-12
2020-02-0340.930840.93084.6e-12
2020-02-0442.003942.00394.9e-12
2020-02-0543.086643.08665.3e-12
2020-02-0644.178244.17825.7e-12
2020-02-0745.277745.27776.0e-12
2020-02-0846.384346.38436.4e-12
2020-02-0947.497147.49716.7e-12
2020-02-1048.615148.61517.1e-12
2020-02-1149.737449.73747.4e-12
2020-02-1250.863150.86317.8e-12
2020-02-1351.991251.99128.1e-12
2020-02-1453.120853.12088.4e-12
2020-02-1554.250854.25088.8e-12
2020-02-1655.380355.38039.1e-12
2020-02-1756.508456.50849.4e-12
2020-02-1857.634157.63419.7e-12
2020-02-1958.756558.75659.9e-12
2020-02-2059.874659.87461.0e-11
2020-02-2160.987760.98771.0e-11
2020-02-2262.094862.09481.1e-11
2020-02-2363.194963.19491.1e-11
2020-02-2464.287364.28731.1e-11
2020-02-2565.371165.37111.1e-11
2020-02-2666.445666.44561.2e-11
2020-02-2767.509967.50991.2e-11
2020-02-2868.563468.56341.2e-11
2020-02-2969.605569.60551.2e-11
2020-03-0170.635470.63541.2e-11
2020-03-0271.652671.65261.2e-11
2020-03-0372.656572.65651.2e-11
2020-03-0473.646673.64661.3e-11
2020-03-0574.622474.62241.3e-11
2020-03-0675.583475.58341.3e-11
2020-03-0776.529476.52941.3e-11
2020-03-0877.459977.45991.3e-11
2020-03-0978.374678.37461.3e-11
2020-03-1079.273279.27321.3e-11
2020-03-1180.155580.15551.3e-11
2020-03-1281.021281.02121.3e-11
2020-03-1381.870481.87041.3e-11
2020-03-1482.702782.70271.3e-11
2020-03-1583.518183.51811.3e-11
2020-03-1684.316684.31661.2e-11
2020-03-1785.098185.09811.2e-11
2020-03-1885.862685.86261.2e-11
2020-03-1986.610386.61031.2e-11
2020-03-2087.341087.34101.2e-11
2020-03-2188.055088.05501.2e-11
2020-03-2288.752288.75221.2e-11
2020-03-2389.433089.43301.2e-11
2020-03-2490.097390.09731.2e-11
2020-03-2590.745490.74541.1e-11
2020-03-2691.377691.37761.1e-11
2020-03-2791.993891.99381.1e-11
2020-03-2892.594692.59461.1e-11
2020-03-2993.179993.17991.1e-11
2020-03-3093.750293.75021.1e-11
2020-03-3194.305694.30561.0e-11
2020-04-0194.846594.84651.0e-11
2020-04-0295.373195.37311.0e-11
2020-04-0395.885695.88569.8e-12
2020-04-0496.384596.38459.6e-12
2020-04-0596.870096.87009.4e-12
2020-04-0697.342397.34239.3e-12
2020-04-0797.801897.80189.0e-12
2020-04-0898.248998.24898.9e-12
2020-04-0998.683798.68378.7e-12
2020-04-1099.106799.10678.5e-12
2020-04-1199.518099.51808.3e-12
2020-04-1299.918199.91818.1e-12
2020-04-13100.3073100.30737.9e-12
2020-04-14100.6857100.68577.8e-12
2020-04-15101.0538101.05387.5e-12
2020-04-16101.4118101.41187.4e-12
2020-04-17101.7600101.76007.2e-12
2020-04-18102.0988102.09887.0e-12
2020-04-19102.4283102.42836.8e-12
2020-04-20102.7489102.74896.7e-12
2020-04-21103.0608103.06086.5e-12
2020-04-22103.3644103.36446.4e-12
2020-04-23103.6598103.65986.2e-12
2020-04-24103.9474103.94746.0e-12
2020-04-25104.2273104.22735.8e-12
2020-04-26104.4999104.49995.7e-12
2020-04-27104.7654104.76545.5e-12
2020-04-28105.0240105.02405.4e-12
2020-04-29105.2760105.27605.2e-12

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit19.0 ms30.2 ms1.6× faster
Predict699 µs3.53 ms5.0× faster
Save model to JSON28 µs459 µs17× faster
Load model from JSON160 µs2.29 ms14× faster
Load and predict in a new process160 ms1.43 s8.9× 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": "auto",
      "count": 3,
      "range": 0.8
    },
    "changepointPriorScale": 0.05,
    "seasonalities": [],
    "events": [],
    "regressors": []
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.