Skip to content

Defaults, ranges with changing growth, second seed ​

match flagged ← All logistic growth benchmarks

The same ranges from a different random seed, so one lucky draw cannot pass the case.

Input ​

benchmark/inputs/v3/logistic-rate-changes.json: 365 history rows and 455 forecast rows.

Output ​

Largest difference: 0.013 (0.0086% of the input's range).

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-01-019.42229.41550.0067
2020-01-0210.469610.46280.0068
2020-01-0310.908510.90170.0069
2020-01-0410.402710.39580.0069
2020-01-059.53499.52800.0070
2020-01-069.15889.15180.0070
2020-01-079.56899.56180.0071
2020-01-0810.541510.53470.0068
2020-01-0911.605911.59900.0069
2020-01-1012.062212.05530.0069
2020-01-1111.573911.56690.0070
2020-01-1210.724010.71690.0070
2020-01-1310.365810.35880.0071
2020-01-1410.794210.78710.0071
2020-01-1511.785311.77840.0068
2020-01-1612.868512.86160.0069
2020-01-1713.343813.33680.0070
2020-01-1812.874712.86770.0070
2020-01-1912.044212.03720.0070
2020-01-2011.705911.69880.0071
2020-01-2112.154212.14710.0071
2020-01-2213.165513.15870.0068
2020-01-2314.269314.26240.0068
2020-01-2414.765314.75840.0069
2020-01-2514.317314.31040.0069
2020-01-2613.508113.50120.0069
2020-01-2713.191313.18430.0069
2020-01-2813.661413.65440.0070
2020-01-2914.694814.68820.0066
2020-01-3015.820915.81420.0067
2020-01-3116.339616.33290.0067
2020-02-0115.914415.90770.0067
2020-02-0215.128415.12170.0067
2020-02-0314.835014.82830.0067
2020-02-0415.328915.32220.0067
2020-02-0516.386316.37990.0064
2020-02-0617.536617.53030.0064
2020-02-0718.079918.07350.0064
2020-02-0817.679617.67320.0064
2020-02-0916.918616.91230.0063
2020-02-1016.650716.64440.0063
2020-02-1117.170217.16390.0063
2020-02-1218.253618.24770.0059
2020-02-1319.430219.42430.0059
2020-02-1420.000019.99410.0059
2020-02-1519.626519.62060.0059
2020-02-1618.892718.88690.0058
2020-02-1718.652118.64630.0058
2020-02-1819.199319.19360.0057
2020-02-1920.310720.30540.0053
2020-02-2021.515621.51030.0053
2020-02-2122.113922.10860.0053
2020-02-2221.769221.76410.0052
2020-02-2321.064621.05950.0051
2020-02-2420.853420.84840.0050
2020-02-2521.430321.42540.0050
2020-02-2622.571722.56710.0046
2020-02-2723.806823.80230.0045
2020-02-2824.435724.43130.0044
2020-02-2924.121924.11760.0043
2020-03-0123.448323.44410.0042
2020-03-0223.268523.26440.0041
2020-03-0323.877123.87310.0040
2020-03-0425.050425.04690.0036
2020-03-0526.317826.31430.0034
2020-03-0626.979226.97580.0033
2020-03-0726.698126.69490.0032
2020-03-0826.057626.05460.0031
2020-03-0925.911225.90820.0029
2020-03-1026.553326.55060.0028
2020-03-1127.760527.75820.0023
2020-03-1229.061929.05980.0022
2020-03-1329.757729.75560.0020
2020-03-1429.511229.50940.0019
2020-03-1528.905628.90390.0017
2020-03-1628.794228.79270.0015
2020-03-1729.471729.47040.0013
2020-03-1830.714430.71360.00081
2020-03-1932.051732.05110.00063
2020-03-2032.783532.78300.00044
2020-03-2132.573332.57310.00023
2020-03-2232.004132.00411.3e-5
2020-03-2331.929531.92970.00020
2020-03-2432.643932.64430.00042
2020-03-2533.923833.92470.00098
2020-03-2635.298335.29950.0012
2020-03-2736.067636.06900.0014
2020-03-2835.895235.89680.0017
2020-03-2935.363935.36580.0019
2020-03-3035.327335.32950.0022
2020-03-3136.079936.08240.0025
2020-04-0137.398137.40120.0031
2020-04-0238.811338.81460.0033
2020-04-0339.619239.62280.0036
2020-04-0439.485639.48950.0039
2020-04-0538.993238.99740.0042
2020-04-0638.995739.00020.0045
2020-04-0739.787539.79230.0048
2020-04-0841.145041.15050.0054
2020-04-0942.597642.60330.0058
2020-04-1043.445043.45110.0061
2020-04-1143.350943.35730.0064
2020-04-1242.898242.90500.0068
2020-04-1342.940442.94750.0071
2020-04-1443.771943.77940.0075
2020-04-1545.169245.17740.0081
2020-04-1646.661646.67010.0085
2020-04-1747.548847.55770.0089
2020-04-1847.494647.50380.0092
2020-04-1947.081747.09130.0096
2020-04-2047.163747.17370.010
2020-04-2148.035148.04550.010
2020-04-2249.472249.48330.011
2020-04-2351.004251.01580.012
2020-04-2451.931151.94310.012
2020-04-2551.916551.92890.012
2020-04-2651.543151.55590.013
2020-04-2751.551551.56380.012
2020-04-2852.347452.35910.012
2020-04-2953.707253.71870.011
2020-04-3055.160155.17100.011
2020-05-0156.006156.01640.010
2020-05-0255.908755.91840.0097
2020-05-0355.450755.45980.0091
2020-05-0455.485755.49410.0085
2020-05-0556.308156.31600.0079
2020-05-0657.694357.70180.0076
2020-05-0759.173559.18040.0069
2020-05-0860.045660.05190.0063
2020-05-0959.655759.66110.0054
2020-05-1058.902358.90680.0045
2020-05-1158.638958.64250.0036
2020-05-1259.160059.16270.0027
2020-05-1360.241960.24400.0021
2020-05-1461.414061.41520.0012
2020-05-1561.976161.97640.00024
2020-05-1661.591861.59120.00067
2020-05-1760.844060.84240.0016
2020-05-1860.586260.58370.0025
2020-05-1961.112961.10940.0035
2020-05-2062.200362.19630.0041
2020-05-2163.286563.28240.0041
2020-05-2263.762363.75820.0041
2020-05-2363.291263.28720.0040
2020-05-2462.456262.45220.0040
2020-05-2562.110862.10680.0040
2020-05-2662.549462.54550.0039
2020-05-2763.548563.54490.0036
2020-05-2864.637264.63360.0036
2020-05-2965.115565.11200.0036
2020-05-3064.647064.64350.0035
2020-05-3163.814663.81110.0035
2020-06-0163.471763.46820.0035
2020-06-0263.912963.90950.0034
2020-06-0364.914564.91140.0031
2020-06-0466.005866.00270.0031
2020-06-0566.486666.48360.0031
2020-06-0666.020766.01770.0030
2020-06-0765.190865.18780.0030
2020-06-0864.850464.84750.0030
2020-06-0965.294165.29120.0029
2020-06-1066.298266.29570.0026
2020-06-1167.392067.38940.0026
2020-06-1267.875467.87290.0025
2020-06-1367.412267.40940.0028
2020-06-1466.585066.58210.0030
2020-06-1566.247466.24420.0032
2020-06-1666.693966.69050.0034
2020-06-1767.700767.69740.0033
2020-06-1868.797268.79370.0036
2020-06-1969.283369.27950.0038
2020-06-2068.822668.81860.0040
2020-06-2167.997967.99370.0042
2020-06-2267.662767.65830.0045
2020-06-2368.111768.10700.0047
2020-06-2469.120969.11630.0046
2020-06-2570.219970.21520.0047
2020-06-2670.708570.70370.0048
2020-06-2770.250270.24540.0048
2020-06-2869.427969.42310.0049
2020-06-2969.095269.09030.0049
2020-06-3069.546569.54150.0050
2020-07-0170.558270.55350.0047
2020-07-0271.659671.65480.0048
2020-07-0372.150572.14560.0049
2020-07-0471.694671.68970.0050
2020-07-0570.874870.86980.0050
2020-07-0670.544470.53930.0051
2020-07-0770.998170.99300.0051
2020-07-0872.012272.00730.0049
2020-07-0973.115973.11090.0050
2020-07-1073.609273.60420.0050
2020-07-1173.155773.15060.0051
2020-07-1272.338172.33300.0052
2020-07-1372.010172.00490.0052
2020-07-1472.466272.46090.0053
2020-07-1573.482573.47750.0050
2020-07-1674.588674.58350.0051
2020-07-1775.084275.07900.0052
2020-07-1874.633074.62770.0054
2020-07-1973.817973.81240.0055
2020-07-2073.492273.48660.0056
2020-07-2173.950673.94480.0058
2020-07-2274.969474.96370.0056
2020-07-2376.077776.07190.0058
2020-07-2476.575776.56970.0060
2020-07-2576.126876.12070.0061
2020-07-2675.313975.30760.0063
2020-07-2774.990574.98400.0064
2020-07-2875.451175.44450.0066
2020-07-2976.472076.46560.0064
2020-07-3077.582777.57610.0066
2020-07-3178.082978.07610.0068
2020-08-0177.636277.62920.0070
2020-08-0276.825576.81830.0072
2020-08-0376.504376.49690.0074
2020-08-0476.967276.95960.0076
2020-08-0577.990377.98290.0074
2020-08-0679.103179.09550.0076
2020-08-0779.605579.59760.0078
2020-08-0879.160979.15290.0080
2020-08-0978.352478.34410.0082
2020-08-1078.046678.03900.0076
2020-08-1178.525078.51790.0071
2020-08-1279.563779.55750.0062
2020-08-1380.692080.68640.0056
2020-08-1481.209981.20490.0050
2020-08-1580.781080.77660.0044
2020-08-1679.988079.98420.0038
2020-08-1779.684679.68140.0032
2020-08-1880.165280.16260.0026
2020-08-1981.206281.20450.0017
2020-08-2082.336882.33570.0011
2020-08-2182.857082.85640.00056
2020-08-2282.638782.63874.0e-5
2020-08-2382.057182.05760.00049
2020-08-2481.965781.96670.0010
2020-08-2582.659082.66050.0015
2020-08-2683.913383.91570.0024
2020-08-2785.257985.26080.0029
2020-08-2885.992685.99600.0034
2020-08-2985.781285.78510.0039
2020-08-3085.206385.21070.0045
2020-08-3185.121585.12650.0050
2020-09-0185.821385.82680.0055
2020-09-0287.212687.21840.0058
2020-09-0388.694788.70030.0057
2020-09-0489.567389.57280.0056
2020-09-0589.494089.49950.0055
2020-09-0689.057789.06310.0054
2020-09-0789.111989.11720.0053
2020-09-0889.951089.95620.0052
2020-09-0991.351391.35670.0054
2020-09-1092.842192.84740.0053
2020-09-1193.723393.72850.0052
2020-09-1293.658393.66350.0051
2020-09-1393.230193.23520.0050
2020-09-1493.292293.29710.0049
2020-09-1594.138994.14370.0048
2020-09-1695.546695.55170.0050
2020-09-1797.044697.04960.0049
2020-09-1897.932797.93760.0048
2020-09-1997.874597.87930.0047
2020-09-2097.452897.45750.0046
2020-09-2197.521197.52560.0045
2020-09-2298.373998.37830.0044
2020-09-2399.787499.79200.0046
2020-09-24101.2909101.29540.0045
2020-09-25102.1843102.18870.0044
2020-09-26102.1312102.13550.0043
2020-09-27101.7142101.71850.0042
2020-09-28101.7871101.79120.0041
2020-09-29102.6442102.64820.0040
2020-09-30104.0617104.06600.0042
2020-10-01105.5691105.57320.0041
2020-10-02106.4661106.47010.0040
2020-10-03106.4163106.42020.0039
2020-10-04106.0025106.00620.0038
2020-10-05106.0781106.08180.0037
2020-10-06106.9378106.94140.0036
2020-10-07108.3577108.36150.0038
2020-10-08109.8671109.87080.0037
2020-10-09110.7660110.76950.0036
2020-10-10110.7178110.72120.0035
2020-10-11110.3053110.30860.0034
2020-10-12110.3820110.38530.0032
2020-10-13111.2425111.24570.0031
2020-10-14112.6630112.66640.0034
2020-10-15114.1728114.17600.0032
2020-10-16115.0717115.07480.0031
2020-10-17115.0233115.02630.0030
2020-10-18114.6104114.61330.0029
2020-10-19114.6865114.68930.0028
2020-10-20115.5461115.54880.0027
2020-10-21116.9655116.96840.0029
2020-10-22118.4738118.47660.0028
2020-10-23119.3711119.37370.0027
2020-10-24119.3208119.32330.0026
2020-10-25118.9057118.90820.0025
2020-10-26118.9794118.98180.0023
2020-10-27119.8364119.83860.0022
2020-10-28121.2528121.25530.0024
2020-10-29122.7581122.76040.0023
2020-10-30123.6520123.65420.0022
2020-10-31123.5981123.60020.0021
2020-11-01123.1792123.18120.0020
2020-11-02123.2488123.25070.0019
2020-11-03124.1014124.10320.0018
2020-11-04125.5133125.51530.0020
2020-11-05127.0137127.01560.0019
2020-11-06127.9026127.90430.0017
2020-11-07127.8434127.84500.0016
2020-11-08127.4190127.42050.0015
2020-11-09127.4829127.48430.0014
2020-11-10128.3296128.33090.0013
2020-11-11129.7353129.73680.0015
2020-11-12131.2293131.23070.0014
2020-11-13132.1115132.11280.0013
2020-11-14132.0455132.04670.0012
2020-11-15131.6141131.61520.0011
2020-11-16131.6707131.67160.00099
2020-11-17132.5098132.51070.00088
2020-11-18133.9078133.90890.0011
2020-11-19135.3939135.39490.00098
2020-11-20136.2680136.26890.00086
2020-11-21136.1937136.19440.00076
2020-11-22135.7537135.75430.00066
2020-11-23135.8015135.80210.00056
2020-11-24136.6317136.63220.00044
2020-11-25138.0206138.02130.00067
2020-11-26139.4973139.49790.00055
2020-11-27140.3619140.36230.00043
2020-11-28140.2778140.27820.00033
2020-11-29139.8279139.82810.00024
2020-11-30139.8656139.86580.00014
2020-12-01140.6856140.68562.7e-5
2020-12-02142.0639142.06420.00025
2020-12-03143.5300143.53020.00014
2020-12-04144.3838144.38382.0e-5
2020-12-05144.2886144.28867.4e-5
2020-12-06143.8275143.82740.00017
2020-12-07143.8539143.85370.00027
2020-12-08144.6623144.66190.00037
2020-12-09146.0290146.02890.00014
2020-12-10147.4832147.48300.00026
2020-12-11148.3250148.32460.00037
2020-12-12148.2177148.21720.00046
2020-12-13147.7442147.74370.00055
2020-12-14147.7582147.75750.00065
2020-12-15148.5539148.55320.00075
2020-12-16149.9078149.90730.00052
2020-12-17151.3492151.34850.00063
2020-12-18152.1778152.17710.00074
2020-12-19152.0574152.05650.00083
2020-12-20151.5706151.56970.00092
2020-12-21151.5710151.57000.0010
2020-12-22152.3532152.35210.0011
2020-12-23153.6934153.69250.00088
2020-12-24155.1209155.11990.00098
2020-12-25155.9356155.93450.0011
2020-12-26155.8010155.79980.0012
2020-12-27155.3000155.29880.0013
2020-12-28155.2862155.28480.0013
2020-12-29156.0539156.05250.0014
2020-12-30157.3795157.37830.0012
2020-12-31158.7924158.79110.0013
2021-01-01159.5923159.59090.0014
2021-01-02159.4429159.44140.0015
2021-01-03158.9270158.92540.0016
2021-01-04158.8981158.89640.0017
2021-01-05159.6507159.64890.0018
2021-01-06160.9611160.95960.0015
2021-01-07162.3586162.35700.0016
2021-01-08163.1432163.14150.0017
2021-01-09162.9783162.97650.0018
2021-01-10162.4468162.44500.0019
2021-01-11162.4023162.40040.0019
2021-01-12163.1392163.13720.0020
2021-01-13164.4339164.43210.0018
2021-01-14165.8156165.81370.0019
2021-01-15166.5842166.58220.0020
2021-01-16166.4034166.40130.0021
2021-01-17165.8559165.85380.0021
2021-01-18165.7953165.79310.0022
2021-01-19166.5161166.51380.0023
2021-01-20167.7945167.79250.0020
2021-01-21169.1600169.15790.0021
2021-01-22169.9124169.91010.0022
2021-01-23169.7152169.71290.0023
2021-01-24169.1513169.14900.0024
2021-01-25169.0743169.07190.0024
2021-01-26169.7786169.77610.0025
2021-01-27171.0406171.03840.0023
2021-01-28172.3896172.38720.0024
2021-01-29173.1254173.12300.0024
2021-01-30172.9117172.90920.0025
2021-01-31172.3312172.32860.0026
2021-02-01172.2376172.23490.0026
2021-02-02172.9253172.92260.0027
2021-02-03174.1706174.16820.0025
2021-02-04175.5029175.50030.0026
2021-02-05176.2220176.21940.0026
2021-02-06175.9916175.98890.0027
2021-02-07175.3945175.39170.0028
2021-02-08175.2841175.28130.0028
2021-02-09175.9551175.95220.0029
2021-02-10177.1837177.18110.0026
2021-02-11178.4993178.49650.0027
2021-02-12179.2017179.19890.0028
2021-02-13178.9545178.95170.0029
2021-02-14178.3407178.33770.0029
2021-02-15178.2136178.21060.0030
2021-02-16178.8679178.86480.0031
2021-02-17180.0798180.07700.0028
2021-02-18181.3787181.37580.0029
2021-02-19182.0645182.06150.0029
2021-02-20181.8007181.79770.0030
2021-02-21181.1702181.16710.0031
2021-02-22181.0265181.02340.0031
2021-02-23181.6642181.66100.0032
2021-02-24182.8596182.85670.0029
2021-02-25184.1419184.13890.0030
2021-02-26184.8112184.80810.0031
2021-02-27184.5309184.52780.0031
2021-02-28183.8839183.88080.0032
2021-03-01183.7239183.72060.0032
2021-03-02184.3452184.34190.0033
2021-03-03185.5242185.52120.0030
2021-03-04186.7902186.78710.0031
2021-03-05187.4432187.44000.0032
2021-03-06187.1467187.14350.0032
2021-03-07186.4835186.48030.0032
2021-03-08186.3073186.30400.0033
2021-03-09186.9125186.90910.0034
2021-03-10188.0754188.07230.0031
2021-03-11189.3254189.32220.0032
2021-03-12189.9624189.95920.0032
2021-03-13189.6499189.64670.0033
2021-03-14188.9709188.96760.0033
2021-03-15188.7788188.77540.0034
2021-03-16189.3682189.36480.0034
2021-03-17190.5154190.51230.0031
2021-03-18191.7497191.74650.0032
2021-03-19192.3711192.36780.0033
2021-03-20192.0431192.03980.0033
2021-03-21191.3485191.34520.0034
2021-03-22191.1410191.13760.0034
2021-03-23191.7150191.71160.0035
2021-03-24192.8469192.84370.0032
2021-03-25194.0659194.06270.0032
2021-03-26194.6721194.66880.0033
2021-03-27194.3289194.32550.0033
2021-03-28193.6193193.61590.0034
2021-03-29193.3967193.39330.0034
2021-03-30193.9557193.95230.0035

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)-1686.7261-1686.76290.01
Stationarity residual (lower is closer to the best fit)208.8102200.76740.01

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows78 µs780 µs10× faster
Save model to JSON22 µs802 µs36× faster
Load model from JSON183 µs2.85 ms16× faster
Simulate uncertainty23.1 ms288 ms12× faster
First simulation in a new process333 ms1.92 s5.8× faster
Load and simulate in a new process202 ms1.84 s9.1× 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
  },
  "uncertainty": {
    "seed": 7,
    "samples": 1000,
    "intervalWidth": 0.8,
    "output": "intervals",
    "algorithm": "scalar-continuous-time",
    "evidence": "docs/validation/uncertainty.md#evidence-classes",
    "samplerMemoryLimitBytes": 67108864
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.