Skip to content

Defaults, three months of daily data ​

match ← All logistic growth benchmarks

96 days with a weekly pattern. Weekly seasonality and 25 automatic changepoints switch on by default.

Input ​

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

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-01-0114.193514.19352.1e-10
2020-01-0215.350015.35001.6e-10
2020-01-0316.051516.05156.8e-11
2020-01-0416.182316.18234.6e-10
2020-01-0516.068816.06881.0e-9
2020-01-0616.234016.23401.5e-9
2020-01-0717.012517.01251.7e-9
2020-01-0818.268718.26871.4e-9
2020-01-0919.546619.54661.0e-9
2020-01-1020.370920.37097.9e-10
2020-01-1120.626020.62608.2e-10
2020-01-1220.638220.63829.5e-10
2020-01-1320.930020.93009.3e-10
2020-01-1421.836221.83628.2e-10
2020-01-1523.219823.21987.2e-10
2020-01-1624.625624.62565.7e-10
2020-01-1725.578025.57803.5e-10
2020-01-1825.961225.96122.6e-10
2020-01-1926.101226.10122.8e-10
2020-01-2026.520526.52052.9e-10
2020-01-2127.553427.55344.6e-11
2020-01-2229.062829.06281.8e-10
2020-01-2330.593230.59324.0e-10
2020-01-2431.668931.66894.4e-10
2020-01-2532.173632.17363.4e-10
2020-01-2632.433132.43315.1e-11
2020-01-2732.969532.96959.6e-11
2020-01-2834.116934.11698.5e-14
2020-01-2935.738035.73803.4e-10
2020-01-3037.376737.37677.4e-10
2020-01-3138.557238.55729.8e-10
2020-02-0139.163039.16309.0e-10
2020-02-0239.519439.51947.0e-10
2020-02-0340.148440.14846.5e-10
2020-02-0441.383841.38388.4e-10
2020-02-0543.088043.08801.0e-9
2020-02-0644.804844.80481.2e-9
2020-02-0746.058046.05801.1e-9
2020-02-0846.730846.73088.0e-10
2020-02-0947.148547.14853.8e-10
2020-02-1047.832947.83291.6e-10
2020-02-1149.117649.11764.6e-10
2020-02-1250.864850.86487.7e-10
2020-02-1352.618152.61817.2e-10
2020-02-1453.901453.90148.3e-10
2020-02-1554.597654.59761.1e-9
2020-02-1655.032155.03217.5e-10
2020-02-1755.726555.72652.7e-10
2020-02-1857.014557.01454.5e-10
2020-02-1958.758258.75821.1e-9
2020-02-2060.501460.50141.7e-9
2020-02-2161.768061.76802.2e-9
2020-02-2262.441062.44102.1e-9
2020-02-2362.845862.84582.0e-9
2020-02-2463.504363.50432.0e-9
2020-02-2564.750264.75022.0e-9
2020-02-2666.445866.44581.9e-9
2020-02-2768.135168.13512.0e-9
2020-02-2869.342169.34211.8e-9
2020-02-2969.950169.95011.5e-9
2020-03-0170.284770.28471.1e-9
2020-03-0270.868170.86817.4e-10
2020-03-0372.034172.03416.4e-10
2020-03-0473.645473.64545.2e-10
2020-03-0575.246275.24622.1e-10
2020-03-0676.360876.36082.6e-10
2020-03-0776.872876.87288.6e-10
2020-03-0877.108177.10811.8e-9
2020-03-0977.589077.58902.6e-9
2020-03-1078.649978.64993.1e-9
2020-03-1180.153980.15392.3e-9
2020-03-1281.645381.64531.5e-9
2020-03-1382.648482.64849.5e-10
2020-03-1483.047383.04737.7e-10
2020-03-1583.168083.16807.2e-10
2020-03-1683.533283.53325.3e-10
2020-03-1784.477384.47733.5e-10
2020-03-1885.863685.86361.8e-10
2020-03-1987.236787.23674.9e-11
2020-03-2088.121388.12131.0e-10
2020-03-2188.401788.40171.4e-11
2020-03-2288.404188.40412.0e-10
2020-03-2388.651488.65142.6e-10
2020-03-2489.478389.47839.0e-11
2020-03-2590.748090.74806.8e-11
2020-03-2692.005592.00552.8e-10
2020-03-2792.775692.77563.2e-10
2020-03-2892.942692.94262.2e-10
2020-03-2992.833092.83302.8e-12
2020-03-3092.969892.96988.2e-11
2020-03-3193.687693.68768.2e-11
2020-04-0194.850094.85002.3e-10
2020-04-0296.001996.00194.3e-10
2020-04-0396.668296.66824.6e-10
2020-04-0496.733396.73333.5e-10
2020-04-0596.523896.52381.2e-10
2020-04-0696.562596.56252.8e-11
2020-04-0797.184497.18441.8e-10
2020-04-0898.252998.25293.2e-10
2020-04-0999.313099.31305.1e-10
2020-04-1099.889699.88965.4e-10
2020-04-1199.867299.86724.2e-10
2020-04-1299.572299.57221.8e-10
2020-04-1399.527799.52778.1e-11
2020-04-14100.0685100.06852.3e-10
2020-04-15101.0579101.05793.6e-10
2020-04-16102.0411102.04115.5e-10
2020-04-17102.5430102.54305.7e-10
2020-04-18102.4479102.44794.4e-10
2020-04-19102.0823102.08231.9e-10
2020-04-20101.9693101.96939.5e-11
2020-04-21102.4435102.44352.4e-10
2020-04-22103.3684103.36843.7e-10
2020-04-23104.2890104.28905.5e-10
2020-04-24104.7302104.73025.6e-10
2020-04-25104.5763104.57634.3e-10
2020-04-26104.1538104.15381.9e-10
2020-04-27103.9856103.98568.2e-11
2020-04-28104.4065104.40652.2e-10
2020-04-29105.2798105.27983.5e-10

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit102 ms123 ms1.2× faster
Predict1.01 ms4.50 ms4.5× faster
Save model to JSON23 µs506 µs22× faster
Load model from JSON261 µs2.39 ms9.2× 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"
  },
  "fitRequest": "growth-only",
  "configuration": {
    "growth": "logistic",
    "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,
    "sigFigs": 12
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.