Skip to content

Everything at once, minmax scaling ​

match ← All logistic growth benchmarks

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

Input ​

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

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-01-0124.526324.52631.3e-11
2020-01-0225.638825.63881.3e-11
2020-01-0327.229527.22951.4e-11
2020-01-0426.375626.37561.4e-11
2020-01-0526.204726.20471.5e-11
2020-01-0627.108327.10831.6e-11
2020-01-0727.035627.03561.6e-11
2020-01-0828.270628.27061.7e-11
2020-01-0930.519030.51901.8e-11
2020-01-1030.227530.22751.8e-11
2020-01-1130.070130.07011.9e-11
2020-01-1230.352130.35212.0e-11
2020-01-1330.581330.58132.0e-11
2020-01-1431.402331.40232.1e-11
2020-01-1533.945133.94512.3e-11
2020-01-1633.426733.42672.3e-11
2020-01-1734.926634.92662.3e-11
2020-01-1835.224835.22482.4e-11
2020-01-1935.273135.27312.5e-11
2020-01-2035.612835.61282.6e-11
2020-01-2140.681540.68152.5e-11
2020-01-2239.826539.82653.1e-11
2020-01-2341.365141.36512.5e-11
2020-01-2440.391040.39102.9e-11
2020-01-2540.794040.79402.9e-11
2020-01-2641.302941.30293.0e-11
2020-01-2742.928842.92883.3e-11
2020-01-2842.415442.41543.2e-11
2020-01-2943.965943.96593.3e-11
2020-01-3045.471145.47113.3e-11
2020-01-3145.761245.76123.4e-11
2020-02-0147.032147.03213.5e-11
2020-02-0249.009049.00903.7e-11
2020-02-0347.786647.78663.6e-11
2020-02-0448.891448.89143.7e-11
2020-02-0550.488650.48863.8e-11
2020-02-0652.084752.08473.8e-11
2020-02-0753.217853.21783.9e-11
2020-02-0855.719155.71914.1e-11
2020-02-0954.052054.05204.0e-11
2020-02-1055.403355.40334.0e-11
2020-02-1155.766655.76664.1e-11
2020-02-1257.425057.42504.1e-11
2020-02-1359.027959.02794.2e-11
2020-02-1462.359962.35994.4e-11
2020-02-1560.408660.40864.2e-11
2020-02-1661.053661.05364.2e-11
2020-02-1761.628461.62844.3e-11
2020-02-1862.776862.77684.3e-11
2020-02-1964.430764.43074.3e-11
2020-02-2067.790667.79064.6e-11
2020-02-2167.165967.16594.3e-11
2020-02-2267.710867.71084.3e-11
2020-02-2367.983967.98394.3e-11
2020-02-2468.526068.52604.3e-11
2020-02-2570.270170.27014.3e-11
2020-02-2673.852373.85234.6e-11
2020-02-2772.790872.79084.3e-11
2020-02-2873.879973.87994.3e-11
2020-02-2974.366774.36674.2e-11
2020-03-0174.934874.93484.2e-11
2020-03-0275.052475.05244.2e-11
2020-03-0378.898778.89874.4e-11
2020-03-0477.627277.62724.1e-11
2020-03-0579.093079.09304.1e-11
2020-03-0679.319379.31934.0e-11
2020-03-0780.502180.50214.0e-11
2020-03-0880.624880.62484.0e-11
2020-03-0984.001984.00194.2e-11
2020-03-1081.955781.95573.9e-11
2020-03-1183.372083.37203.8e-11
2020-03-1284.765184.76513.7e-11
2020-03-1385.673885.67383.7e-11
2020-03-1485.975685.97563.6e-11
2020-03-1589.156489.15643.8e-11
2020-03-1687.063287.06323.5e-11
2020-03-1787.122987.12293.5e-11
2020-03-1888.459988.45993.4e-11
2020-03-1989.724989.72493.3e-11
2020-03-2090.529690.52963.2e-11
2020-03-2193.689793.68973.4e-11
2020-03-2290.645290.64523.1e-11
2020-03-2390.824290.82423.1e-11
2020-03-2491.564891.56483.0e-11
2020-03-2592.799892.79982.9e-11
2020-03-2693.338093.33802.9e-11
2020-03-2798.102798.10273.0e-11
2020-03-2894.766494.76642.7e-11
2020-03-2994.586094.58602.7e-11
2020-03-3094.668394.66832.6e-11
2020-03-3195.947495.94742.5e-11
2020-04-0196.454496.45442.5e-11
2020-04-02101.0709101.07092.6e-11
2020-04-0398.139298.13922.3e-11
2020-04-0498.148698.14862.3e-11
2020-04-0598.238398.23832.2e-11
2020-04-0697.877497.87742.2e-11
2020-04-0798.438698.43862.1e-11
2020-04-08103.1368103.13682.3e-11
2020-04-09100.4884100.48842.0e-11
2020-04-10100.2425100.24251.9e-11
2020-04-11100.9564100.95641.9e-11
2020-04-12100.6139100.61391.8e-11
2020-04-13100.5376100.53761.8e-11
2020-04-14104.7473104.74731.9e-11
2020-04-15104.1373104.13731.3e-11
2020-04-16104.7701104.77012.0e-11
2020-04-17105.3665105.36651.3e-11
2020-04-18103.2806103.28061.5e-11
2020-04-19102.8765102.87651.5e-11
2020-04-20107.3115107.31151.6e-11
2020-04-21103.1724103.17241.4e-11
2020-04-22104.1058104.10581.4e-11
2020-04-23104.9749104.97491.3e-11
2020-04-24105.3917105.39171.2e-11
2020-04-25104.8652104.86521.2e-11
2020-04-26108.6014108.60141.3e-11
2020-04-27104.5714104.57141.2e-11
2020-04-28104.9570104.95701.1e-11
2020-04-29105.8453105.84531.1e-11

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit25.3 ms44.0 ms1.7× faster
Predict911 µs6.51 ms7.1× faster
Save model to JSON23 µs795 µs35× faster
Load model from JSON180 µs3.93 ms22× faster
Load and predict in a new process164 ms1.61 s9.8× 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": [
      {
        "name": "weekly-custom",
        "periodDays": 7,
        "fourierOrder": 3,
        "priorScale": 10,
        "conditionName": "active"
      }
    ],
    "events": [
      {
        "name": "campaign",
        "date": "2020-01-22",
        "lowerWindowDays": -1,
        "upperWindowDays": 1,
        "priorScale": 10
      },
      {
        "name": "campaign",
        "date": "2020-04-16",
        "lowerWindowDays": -1,
        "upperWindowDays": 1,
        "priorScale": 10
      }
    ],
    "regressors": [
      {
        "name": "promotion",
        "priorScale": 10,
        "standardization": "never",
        "mode": "multiplicative"
      }
    ]
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.