Skip to content

Defaults, eight months of daily data ​

match flagged ← All logistic growth benchmarks

256 days with a weekly pattern. Over 100 rows, so both libraries fit with L-BFGS.

Input ​

benchmark/inputs/v2/logistic-weekly-256.json: 256 history rows and 280 forecast rows.

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-01-0114.179014.17780.0011
2020-01-0215.015915.01480.0011
2020-01-0315.385715.38460.0011
2020-01-0415.150515.14940.0010
2020-01-0514.660414.65940.00099
2020-01-0614.455614.45470.00095
2020-01-0714.824814.82390.00092
2020-01-0815.655815.65490.00085
2020-01-0916.510316.50950.00081
2020-01-1016.897916.89710.00077
2020-01-1116.680516.67980.00073
2020-01-1216.208416.20770.00069
2020-01-1316.021716.02110.00064
2020-01-1416.409116.40850.00060
2020-01-1517.258417.25790.00053
2020-01-1618.131318.13090.00048
2020-01-1718.537418.53700.00043
2020-01-1818.338718.33830.00040
2020-01-1917.885317.88500.00036
2020-01-2017.717517.71710.00033
2020-01-2118.123818.12350.00030
2020-01-2218.992118.99180.00024
2020-01-2319.884119.88390.00020
2020-01-2420.309320.30920.00016
2020-01-2520.129920.12970.00013
2020-01-2619.695819.69570.00011
2020-01-2719.547419.54739.3e-5
2020-01-2819.973219.97318.1e-5
2020-01-2920.861020.86103.8e-5
2020-01-3021.772721.77272.0e-5
2020-01-3122.217622.21763.4e-6
2020-02-0122.057922.05791.4e-5
2020-02-0221.643721.64373.3e-5
2020-02-0321.515121.51515.1e-5
2020-02-0421.960721.96086.5e-5
2020-02-0522.868522.86860.00011
2020-02-0623.800123.80020.00013
2020-02-0724.265024.26510.00015
2020-02-0824.125224.12540.00016
2020-02-0923.731023.73120.00018
2020-02-1023.622523.62270.00020
2020-02-1124.088224.08840.00022
2020-02-1225.016025.01630.00025
2020-02-1325.967725.96800.00024
2020-02-1426.452726.45300.00024
2020-02-1526.333126.33330.00024
2020-02-1625.959025.95920.00024
2020-02-1725.870525.87070.00024
2020-02-1826.356226.35650.00023
2020-02-1927.304127.30430.00026
2020-02-2028.275728.27600.00025
2020-02-2128.780728.78090.00024
2020-02-2228.680928.68120.00024
2020-02-2328.326628.32690.00023
2020-02-2428.257928.25820.00023
2020-02-2528.763428.76370.00022
2020-02-2629.730929.73120.00024
2020-02-2730.722230.72240.00023
2020-02-2831.246731.24690.00022
2020-02-2931.166331.16660.00022
2020-03-0130.831430.83160.00021
2020-03-0230.781930.78210.00021
2020-03-0331.306631.30680.00019
2020-03-0432.293132.29340.00021
2020-03-0533.303433.30360.00021
2020-03-0633.846633.84680.00020
2020-03-0733.785033.78520.00019
2020-03-0833.468633.46880.00019
2020-03-0933.437633.43780.00018
2020-03-1033.980533.98070.00018
2020-03-1134.985234.98540.00020
2020-03-1236.013436.01360.00019
2020-03-1336.574436.57460.00018
2020-03-1436.530536.53060.00018
2020-03-1536.231536.23170.00017
2020-03-1636.217836.21800.00017
2020-03-1736.777836.77800.00016
2020-03-1837.799437.79960.00018
2020-03-1938.844338.84450.00017
2020-03-2039.421939.42210.00017
2020-03-2139.394239.39440.00016
2020-03-2239.111439.11150.00016
2020-03-2339.113539.11360.00015
2020-03-2439.689239.68930.00014
2020-03-2540.726140.72630.00016
2020-03-2641.786241.78630.00016
2020-03-2742.378742.37880.00015
2020-03-2842.365642.36580.00014
2020-03-2942.097242.09730.00014
2020-03-3042.113442.11360.00013
2020-03-3142.703042.70310.00012
2020-04-0143.753543.75370.00014
2020-04-0244.826944.82700.00013
2020-04-0345.432445.43250.00013
2020-04-0445.432145.43230.00012
2020-04-0545.176145.17630.00011
2020-04-0645.204545.20460.00011
2020-04-0745.805945.80609.7e-5
2020-04-0846.868146.86820.00011
2020-04-0947.952747.95280.00010
2020-04-1048.569148.56929.1e-5
2020-04-1148.579548.57968.0e-5
2020-04-1248.333848.33396.9e-5
2020-04-1348.372248.37225.8e-5
2020-04-1448.983248.98324.4e-5
2020-04-1550.054650.05465.9e-5
2020-04-1651.148151.14824.8e-5
2020-04-1751.773251.77323.7e-5
2020-04-1851.791851.79182.5e-5
2020-04-1951.554051.55401.5e-5
2020-04-2051.599951.59993.7e-6
2020-04-2152.218152.21811.1e-5
2020-04-2253.296453.29644.0e-6
2020-04-2354.396454.39646.9e-6
2020-04-2455.027655.02761.9e-5
2020-04-2555.052055.05192.2e-5
2020-04-2654.819654.81962.5e-5
2020-04-2754.870554.87052.8e-5
2020-04-2855.493455.49343.5e-5
2020-04-2956.576056.57601.2e-5
2020-04-3057.679957.67991.5e-5
2020-05-0158.314758.31471.9e-5
2020-05-0258.342258.34222.3e-5
2020-05-0358.112658.11262.5e-5
2020-05-0458.166058.16602.8e-5
2020-05-0558.791058.79103.5e-5
2020-05-0659.875359.87521.2e-5
2020-05-0760.980660.98051.5e-5
2020-05-0861.616361.61621.9e-5
2020-05-0961.644461.64442.3e-5
2020-05-1061.415061.41502.5e-5
2020-05-1161.468361.46832.8e-5
2020-05-1262.092762.09273.5e-5
2020-05-1363.176163.17611.2e-5
2020-05-1464.280264.28011.5e-5
2020-05-1564.914364.91421.9e-5
2020-05-1664.940464.94042.2e-5
2020-05-1764.708764.70872.5e-5
2020-05-1864.759364.75932.8e-5
2020-05-1965.380765.38073.5e-5
2020-05-2066.460766.46071.2e-5
2020-05-2167.561067.56101.5e-5
2020-05-2268.191068.19101.9e-5
2020-05-2368.212768.21272.2e-5
2020-05-2467.976367.97632.5e-5
2020-05-2568.021768.02172.8e-5
2020-05-2668.637768.63773.5e-5
2020-05-2769.711969.71191.2e-5
2020-05-2870.806170.80611.5e-5
2020-05-2971.429771.42971.9e-5
2020-05-3071.444771.44472.2e-5
2020-05-3171.201271.20122.5e-5
2020-06-0171.239371.23932.8e-5
2020-06-0271.847671.84753.5e-5
2020-06-0372.913872.91381.1e-5
2020-06-0473.999773.99971.4e-5
2020-06-0574.614874.61471.8e-5
2020-06-0674.620974.62092.2e-5
2020-06-0774.368274.36822.4e-5
2020-06-0874.396974.39692.7e-5
2020-06-0974.995574.99553.4e-5
2020-06-1076.051876.05181.1e-5
2020-06-1177.127577.12751.4e-5
2020-06-1277.732077.73201.8e-5
2020-06-1377.727477.72742.1e-5
2020-06-1477.463877.46382.4e-5
2020-06-1577.481277.48122.7e-5
2020-06-1678.068478.06843.4e-5
2020-06-1779.113079.11291.0e-5
2020-06-1880.176880.17671.3e-5
2020-06-1980.769180.76911.7e-5
2020-06-2080.752280.75222.0e-5
2020-06-2180.476080.47602.3e-5
2020-06-2280.480780.48062.6e-5
2020-06-2381.054881.05483.3e-5
2020-06-2482.086382.08639.8e-6
2020-06-2583.136783.13671.3e-5
2020-06-2683.715683.71561.7e-5
2020-06-2783.684983.68492.0e-5
2020-06-2883.394983.39482.2e-5
2020-06-2983.385583.38552.6e-5
2020-06-3083.945583.94543.2e-5
2020-07-0184.962584.96259.1e-6
2020-07-0285.998585.99851.2e-5
2020-07-0386.562786.56271.6e-5
2020-07-0486.517386.51731.9e-5
2020-07-0586.212486.21232.2e-5
2020-07-0686.188086.18792.5e-5
2020-07-0786.732886.73283.2e-5
2020-07-0887.734687.73468.4e-6
2020-07-0988.755288.75521.1e-5
2020-07-1089.304089.30401.5e-5
2020-07-1189.243089.24301.8e-5
2020-07-1288.922488.92242.1e-5
2020-07-1388.882388.88232.4e-5
2020-07-1489.411389.41133.1e-5
2020-07-1590.397290.39727.6e-6
2020-07-1691.401991.40191.0e-5
2020-07-1791.934691.93461.4e-5
2020-07-1891.857591.85751.8e-5
2020-07-1991.520891.52082.0e-5
2020-07-2091.464591.46442.3e-5
2020-07-2191.977291.97723.0e-5
2020-07-2292.946992.94696.8e-6
2020-07-2393.935293.93529.6e-6
2020-07-2494.451694.45161.4e-5
2020-07-2594.358194.35811.7e-5
2020-07-2694.005094.00501.9e-5
2020-07-2793.932293.93222.2e-5
2020-07-2894.428694.42862.9e-5
2020-07-2995.381895.38185.8e-6
2020-07-3096.353796.35378.6e-6
2020-07-3196.853696.85361.3e-5
2020-08-0196.743796.74371.6e-5
2020-08-0296.374196.37411.8e-5
2020-08-0396.284996.28492.1e-5
2020-08-0496.764996.76492.8e-5
2020-08-0597.701797.70174.8e-6
2020-08-0698.657298.65727.6e-6
2020-08-0799.140899.14081.2e-5
2020-08-0899.014699.01451.5e-5
2020-08-0998.628798.62871.7e-5
2020-08-1098.523398.52322.0e-5
2020-08-1198.987098.98702.7e-5
2020-08-1299.907699.90763.8e-6
2020-08-13100.8470100.84706.6e-6
2020-08-14101.3145101.31451.1e-5
2020-08-15101.1723101.17221.4e-5
2020-08-16100.7704100.77041.6e-5
2020-08-17100.6491100.64911.9e-5
2020-08-18101.0969101.09692.6e-5
2020-08-19102.0018102.00182.9e-6
2020-08-20102.9254102.92545.7e-6
2020-08-21103.3773103.37739.7e-6
2020-08-22103.2194103.21941.3e-5
2020-08-23102.8020102.80201.5e-5
2020-08-24102.6652102.66521.8e-5
2020-08-25103.0977103.09772.5e-5
2020-08-26103.9873103.98731.9e-6
2020-08-27104.8957104.89574.7e-6
2020-08-28105.3324105.33248.7e-6
2020-08-29105.1595105.15951.2e-5
2020-08-30104.7271104.72711.4e-5
2020-08-31104.5755104.57541.8e-5
2020-09-01104.9932104.99312.4e-5
2020-09-02105.8680105.86801.0e-6
2020-09-03106.7618106.76183.8e-6
2020-09-04107.1840107.18407.9e-6
2020-09-05106.9966106.99661.1e-5
2020-09-06106.5499106.54991.4e-5
2020-09-07106.3840106.38401.7e-5
2020-09-08106.7876106.78752.3e-5
2020-09-09107.6483107.64831.7e-7
2020-09-10108.5282108.52823.0e-6
2020-09-11108.9365108.93657.0e-6
2020-09-12108.7355108.73541.0e-5
2020-09-13108.2751108.27511.3e-5
2020-09-14108.0957108.09571.6e-5
2020-09-15108.4858108.48582.3e-5
2020-09-16109.3332109.33326.4e-7
2020-09-17110.1999110.19992.2e-6
2020-09-18110.5951110.59516.2e-6
2020-09-19110.3810110.38109.4e-6
2020-09-20109.9078109.90781.2e-5
2020-09-21109.7155109.71551.5e-5
2020-09-22110.0929110.09292.2e-5
2020-09-23110.9278110.92781.4e-6
2020-09-24111.7820111.78201.4e-6
2020-09-25112.1648112.16485.5e-6
2020-09-26111.9385111.93858.7e-6
2020-09-27111.4531111.45311.1e-5
2020-09-28111.2488111.24881.4e-5
2020-09-29111.6143111.61432.1e-5
2020-09-30112.4374112.43742.1e-6
2020-10-01113.2798113.27987.0e-7
2020-10-02113.6511113.65114.7e-6
2020-10-03113.4132113.41328.0e-6
2020-10-04112.9165112.91651.1e-5
2020-10-05112.7009112.70091.4e-5
2020-10-06113.0552113.05522.0e-5

Internal fit differences ​

The forecasts match, so this case passes. Both libraries search for the best-fitting parameters and stop when they are close enough. On this input they stopped at slightly different points, so these internal numbers differ by more than the threshold where we take a closer look.

CheckEffect ProphetPython ProphetThreshold
Fitting objective (lower is a better fit)-1786.0298-1786.06100.01
Stationarity residual (lower is closer to the best fit)8818.19061349.27800.01

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit37.7 ms42.7 ms1.1× faster
Predict1.22 ms3.82 ms3.1× faster
Save model to JSON19 µs657 µs36× faster
Load model from JSON151 µs2.89 ms19× faster
Load and predict in a new process161 ms1.66 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.