Skip to content

Explicit floor, minmax scaling ​

match ← All logistic growth benchmarks

The same bounds, scaled between the lowest floor and the highest ceiling.

Input ​

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

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-01-0124.485524.48558.6e-12
2020-01-0224.972224.97229.1e-12
2020-01-0325.473425.47349.5e-12
2020-01-0425.989225.98929.9e-12
2020-01-0526.519926.51991.0e-11
2020-01-0627.065727.06571.1e-11
2020-01-0727.626727.62671.1e-11
2020-01-0828.203228.20321.2e-11
2020-01-0928.795328.79531.2e-11
2020-01-1029.403029.40301.3e-11
2020-01-1130.026630.02661.3e-11
2020-01-1230.666130.66611.4e-11
2020-01-1331.321531.32151.4e-11
2020-01-1431.992931.99291.5e-11
2020-01-1532.680332.68031.5e-11
2020-01-1633.383633.38361.6e-11
2020-01-1734.102834.10281.7e-11
2020-01-1834.837834.83781.7e-11
2020-01-1935.588535.58851.8e-11
2020-01-2036.354836.35481.8e-11
2020-01-2137.136437.13641.9e-11
2020-01-2237.933137.93311.9e-11
2020-01-2338.744638.74462.0e-11
2020-01-2439.570739.57072.1e-11
2020-01-2540.411140.41112.1e-11
2020-01-2641.265341.26532.2e-11
2020-01-2742.132942.13292.2e-11
2020-01-2843.013643.01362.3e-11
2020-01-2943.906843.90682.4e-11
2020-01-3044.812144.81212.4e-11
2020-01-3145.728845.72882.5e-11
2020-02-0146.656346.65632.5e-11
2020-02-0247.594247.59422.6e-11
2020-02-0348.541748.54172.6e-11
2020-02-0449.498149.49812.7e-11
2020-02-0550.462850.46282.7e-11
2020-02-0651.435051.43502.8e-11
2020-02-0752.413952.41392.8e-11
2020-02-0853.398953.39892.9e-11
2020-02-0954.389454.38942.9e-11
2020-02-1055.384255.38422.9e-11
2020-02-1156.382756.38273.0e-11
2020-02-1257.383957.38393.0e-11
2020-02-1358.387058.38703.0e-11
2020-02-1459.391159.39113.1e-11
2020-02-1560.395560.39553.1e-11
2020-02-1661.399261.39923.1e-11
2020-02-1762.401462.40143.1e-11
2020-02-1863.401363.40133.1e-11
2020-02-1964.398164.39813.2e-11
2020-02-2065.391065.39103.2e-11
2020-02-2166.379166.37913.2e-11
2020-02-2267.361767.36173.2e-11
2020-02-2368.338168.33813.2e-11
2020-02-2469.307469.30743.2e-11
2020-02-2570.269170.26913.2e-11
2020-02-2671.222371.22233.2e-11
2020-02-2772.166672.16663.2e-11
2020-02-2873.101273.10123.1e-11
2020-02-2974.025674.02563.1e-11
2020-03-0174.939174.93913.1e-11
2020-03-0275.841475.84143.1e-11
2020-03-0376.731976.73193.1e-11
2020-03-0477.610177.61013.0e-11
2020-03-0578.475778.47573.0e-11
2020-03-0679.328279.32823.0e-11
2020-03-0780.167480.16743.0e-11
2020-03-0880.992880.99282.9e-11
2020-03-0981.804481.80442.9e-11
2020-03-1082.601782.60172.9e-11
2020-03-1183.384683.38462.8e-11
2020-03-1284.152984.15292.8e-11
2020-03-1384.906684.90662.7e-11
2020-03-1485.645485.64542.7e-11
2020-03-1586.369486.36942.7e-11
2020-03-1687.078487.07842.6e-11
2020-03-1787.772587.77252.6e-11
2020-03-1888.451688.45162.5e-11
2020-03-1989.115989.11592.5e-11
2020-03-2089.765389.76532.4e-11
2020-03-2190.399990.39992.4e-11
2020-03-2291.019991.01992.3e-11
2020-03-2391.625391.62532.3e-11
2020-03-2492.216392.21632.2e-11
2020-03-2592.793192.79312.2e-11
2020-03-2693.355893.35582.1e-11
2020-03-2793.904793.90472.1e-11
2020-03-2894.439894.43982.0e-11
2020-03-2994.961594.96152.0e-11
2020-03-3095.469995.46991.9e-11
2020-03-3195.965395.96531.9e-11
2020-04-0196.448096.44801.8e-11
2020-04-0296.918196.91811.8e-11
2020-04-0397.375997.37591.7e-11
2020-04-0497.821797.82171.7e-11
2020-04-0598.255898.25581.7e-11
2020-04-0698.678498.67841.6e-11
2020-04-0799.089799.08971.6e-11
2020-04-0899.490199.49011.5e-11
2020-04-0999.879999.87991.5e-11
2020-04-10100.2592100.25921.4e-11
2020-04-11100.6283100.62831.4e-11
2020-04-12100.9876100.98761.4e-11
2020-04-13101.3373101.33731.3e-11
2020-04-14101.6777101.67771.3e-11
2020-04-15102.0090102.00901.2e-11
2020-04-16102.3315102.33151.2e-11
2020-04-17102.6454102.64541.2e-11
2020-04-18102.9510102.95101.1e-11
2020-04-19103.2485103.24851.1e-11
2020-04-20103.5383103.53831.1e-11
2020-04-21103.8204103.82041.0e-11
2020-04-22104.0953104.09531.0e-11
2020-04-23104.3630104.36309.8e-12
2020-04-24104.6239104.62399.5e-12
2020-04-25104.8781104.87819.2e-12
2020-04-26105.1259105.12598.9e-12
2020-04-27105.3675105.36758.6e-12
2020-04-28105.6031105.60318.3e-12
2020-04-29105.8329105.83298.0e-12

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit11.6 ms19.2 ms1.7× faster
Predict793 µs3.08 ms3.9× faster
Save model to JSON29 µs460 µs16× faster
Load model from JSON174 µs2.41 ms14× faster
Load and predict in a new process155 ms1.57 s10× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "logistic-python-reconciliation-v1"
  },
  "configuration": {
    "growth": "logistic",
    "scaling": "minmax",
    "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.