Skip to content

Explicit floor, absmax scaling ​

match ← All logistic growth benchmarks

96 daily rows between a floor of about 12 and a ceiling of about 100.

Input ​

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

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-01-0124.485524.48553.0e-11
2020-01-0224.972224.97223.1e-11
2020-01-0325.473425.47343.2e-11
2020-01-0425.989225.98923.3e-11
2020-01-0526.519926.51993.3e-11
2020-01-0627.065727.06573.4e-11
2020-01-0727.626727.62673.5e-11
2020-01-0828.203228.20323.5e-11
2020-01-0928.795328.79533.6e-11
2020-01-1029.403029.40303.7e-11
2020-01-1130.026630.02663.7e-11
2020-01-1230.666130.66613.8e-11
2020-01-1331.321531.32153.9e-11
2020-01-1431.992931.99293.9e-11
2020-01-1532.680332.68034.0e-11
2020-01-1633.383633.38364.0e-11
2020-01-1734.102834.10284.1e-11
2020-01-1834.837834.83784.1e-11
2020-01-1935.588535.58854.2e-11
2020-01-2036.354836.35484.2e-11
2020-01-2137.136437.13644.3e-11
2020-01-2237.933137.93314.3e-11
2020-01-2338.744638.74464.4e-11
2020-01-2439.570739.57074.4e-11
2020-01-2540.411140.41114.4e-11
2020-01-2641.265341.26534.5e-11
2020-01-2742.132942.13294.5e-11
2020-01-2843.013643.01364.5e-11
2020-01-2943.906843.90684.5e-11
2020-01-3044.812144.81214.5e-11
2020-01-3145.728845.72884.5e-11
2020-02-0146.656346.65634.5e-11
2020-02-0247.594247.59424.5e-11
2020-02-0348.541748.54174.5e-11
2020-02-0449.498149.49814.5e-11
2020-02-0550.462850.46284.5e-11
2020-02-0651.435051.43504.5e-11
2020-02-0752.413952.41394.5e-11
2020-02-0853.398953.39894.4e-11
2020-02-0954.389454.38944.4e-11
2020-02-1055.384255.38424.4e-11
2020-02-1156.382756.38274.3e-11
2020-02-1257.383957.38394.3e-11
2020-02-1358.387058.38704.2e-11
2020-02-1459.391159.39114.2e-11
2020-02-1560.395560.39554.1e-11
2020-02-1661.399261.39924.1e-11
2020-02-1762.401462.40144.0e-11
2020-02-1863.401363.40134.0e-11
2020-02-1964.398164.39813.9e-11
2020-02-2065.391065.39103.8e-11
2020-02-2166.379166.37913.7e-11
2020-02-2267.361767.36173.7e-11
2020-02-2368.338168.33813.6e-11
2020-02-2469.307469.30743.5e-11
2020-02-2570.269170.26913.4e-11
2020-02-2671.222371.22233.3e-11
2020-02-2772.166672.16663.3e-11
2020-02-2873.101273.10123.2e-11
2020-02-2974.025674.02563.1e-11
2020-03-0174.939174.93913.0e-11
2020-03-0275.841475.84142.9e-11
2020-03-0376.731976.73192.8e-11
2020-03-0477.610177.61012.7e-11
2020-03-0578.475778.47572.6e-11
2020-03-0679.328279.32822.6e-11
2020-03-0780.167480.16742.5e-11
2020-03-0880.992880.99282.4e-11
2020-03-0981.804481.80442.3e-11
2020-03-1082.601782.60172.2e-11
2020-03-1183.384683.38462.1e-11
2020-03-1284.152984.15292.1e-11
2020-03-1384.906684.90662.0e-11
2020-03-1485.645485.64541.9e-11
2020-03-1586.369486.36941.8e-11
2020-03-1687.078487.07841.7e-11
2020-03-1787.772587.77251.7e-11
2020-03-1888.451688.45161.6e-11
2020-03-1989.115989.11591.5e-11
2020-03-2089.765389.76531.4e-11
2020-03-2190.399990.39991.4e-11
2020-03-2291.019991.01991.3e-11
2020-03-2391.625391.62531.2e-11
2020-03-2492.216392.21631.2e-11
2020-03-2592.793192.79311.1e-11
2020-03-2693.355893.35581.1e-11
2020-03-2793.904793.90471.0e-11
2020-03-2894.439894.43989.5e-12
2020-03-2994.961594.96159.0e-12
2020-03-3095.469995.46998.5e-12
2020-03-3195.965395.96538.0e-12
2020-04-0196.448096.44807.6e-12
2020-04-0296.918196.91817.1e-12
2020-04-0397.375997.37596.7e-12
2020-04-0497.821797.82176.3e-12
2020-04-0598.255898.25585.9e-12
2020-04-0698.678498.67845.5e-12
2020-04-0799.089799.08975.2e-12
2020-04-0899.490199.49014.8e-12
2020-04-0999.879999.87994.5e-12
2020-04-10100.2592100.25924.2e-12
2020-04-11100.6283100.62833.9e-12
2020-04-12100.9876100.98763.6e-12
2020-04-13101.3373101.33733.3e-12
2020-04-14101.6777101.67773.1e-12
2020-04-15102.0090102.00902.8e-12
2020-04-16102.3315102.33152.6e-12
2020-04-17102.6454102.64542.4e-12
2020-04-18102.9510102.95102.1e-12
2020-04-19103.2485103.24852.0e-12
2020-04-20103.5383103.53831.8e-12
2020-04-21103.8204103.82041.6e-12
2020-04-22104.0953104.09531.5e-12
2020-04-23104.3630104.36301.3e-12
2020-04-24104.6239104.62391.2e-12
2020-04-25104.8781104.87811.0e-12
2020-04-26105.1259105.12598.8e-13
2020-04-27105.3675105.36757.7e-13
2020-04-28105.6031105.60316.5e-13
2020-04-29105.8329105.83295.7e-13

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit7.75 ms13.8 ms1.8× faster
Predict883 µs2.89 ms3.3× faster
Save model to JSON20 µs470 µs24× faster
Load model from JSON160 µs2.26 ms14× faster
Load and predict in a new process162 ms1.44 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": "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.