Skip to content

Switchable weekly pattern ​

match ← All logistic growth benchmarks

A weekly pattern that only applies on rows marked active.

Input ​

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

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-01-0114.188214.18825.7e-12
2020-01-0215.345815.34586.3e-12
2020-01-0316.044316.04436.4e-12
2020-01-0416.181516.18156.9e-12
2020-01-0516.067216.06727.6e-12
2020-01-0617.016517.01658.5e-12
2020-01-0717.017117.01719.6e-12
2020-01-0818.269418.26941.0e-11
2020-01-0919.547119.54711.1e-11
2020-01-1020.367920.36791.1e-11
2020-01-1120.281320.28131.2e-11
2020-01-1220.639020.63901.2e-11
2020-01-1320.931320.93131.4e-11
2020-01-1421.841321.84131.5e-11
2020-01-1523.220823.22081.6e-11
2020-01-1624.000724.00071.6e-11
2020-01-1725.575025.57501.6e-11
2020-01-1825.963725.96371.7e-11
2020-01-1926.102026.10201.8e-11
2020-01-2026.521726.52172.0e-11
2020-01-2128.175028.17502.0e-11
2020-01-2229.063729.06372.2e-11
2020-01-2330.593730.59372.2e-11
2020-01-2431.665631.66562.3e-11
2020-01-2532.175632.17562.4e-11
2020-01-2632.782832.78282.5e-11
2020-01-2732.969932.96992.6e-11
2020-01-2834.121034.12102.8e-11
2020-01-2935.737735.73772.9e-11
2020-01-3037.375937.37592.9e-11
2020-01-3137.777137.77713.0e-11
2020-02-0139.163639.16363.1e-11
2020-02-0239.518139.51813.2e-11
2020-02-0340.147440.14743.3e-11
2020-02-0441.386441.38643.5e-11
2020-02-0543.085543.08553.5e-11
2020-02-0644.802444.80243.6e-11
2020-02-0746.051746.05173.7e-11
2020-02-0846.729846.72983.7e-11
2020-02-0947.146047.14603.9e-11
2020-02-1048.613848.61384.0e-11
2020-02-1149.119749.11974.1e-11
2020-02-1250.862950.86294.2e-11
2020-02-1352.616152.61614.2e-11
2020-02-1453.895853.89584.2e-11
2020-02-1554.250554.25054.3e-11
2020-02-1655.030755.03074.4e-11
2020-02-1755.725855.72584.5e-11
2020-02-1857.017857.01784.5e-11
2020-02-1958.757758.75774.6e-11
2020-02-2059.875359.87534.6e-11
2020-02-2161.763961.76394.6e-11
2020-02-2262.442762.44274.6e-11
2020-02-2362.846162.84614.7e-11
2020-02-2463.505263.50524.7e-11
2020-02-2565.371865.37184.7e-11
2020-02-2666.446966.44694.8e-11
2020-02-2768.136068.13604.8e-11
2020-02-2869.339569.33954.8e-11
2020-02-2969.953369.95334.7e-11
2020-03-0170.635970.63594.8e-11
2020-03-0270.870470.87044.8e-11
2020-03-0372.040472.04044.8e-11
2020-03-0473.647873.64784.8e-11
2020-03-0575.248475.24844.7e-11
2020-03-0675.583975.58394.7e-11
2020-03-0776.877076.87704.6e-11
2020-03-0877.110777.11074.6e-11
2020-03-0977.592277.59224.6e-11
2020-03-1078.656978.65694.6e-11
2020-03-1180.155880.15584.5e-11
2020-03-1281.647181.64714.5e-11
2020-03-1382.646282.64624.4e-11
2020-03-1483.050283.05024.3e-11
2020-03-1583.168883.16884.3e-11
2020-03-1684.316884.31684.3e-11
2020-03-1784.481784.48174.3e-11
2020-03-1885.863585.86354.2e-11
2020-03-1987.235987.23594.1e-11
2020-03-2088.116688.11664.0e-11
2020-03-2188.055088.05504.0e-11
2020-03-2288.402788.40273.9e-11
2020-03-2388.650288.65023.8e-11
2020-03-2489.480689.48063.8e-11
2020-03-2590.746090.74603.7e-11
2020-03-2691.377491.37743.6e-11
2020-03-2792.769292.76923.5e-11
2020-03-2892.941692.94163.4e-11
2020-03-2992.830192.83013.4e-11
2020-03-3092.967292.96723.4e-11
2020-03-3194.305394.30533.3e-11
2020-04-0194.846994.84693.2e-11
2020-04-0295.998395.99833.1e-11
2020-04-0396.660896.66083.0e-11
2020-04-0496.731496.73142.9e-11
2020-04-0596.869696.86962.9e-11
2020-04-0696.559296.55922.9e-11
2020-04-0797.184897.18482.8e-11
2020-04-0898.249298.24922.7e-11
2020-04-0999.308899.30882.6e-11
2020-04-1099.106399.10632.6e-11
2020-04-1199.864899.86482.5e-11
2020-04-1299.568299.56822.4e-11
2020-04-1399.524199.52412.4e-11
2020-04-14100.0687100.06872.4e-11
2020-04-15101.0534101.05342.2e-11
2020-04-16102.0369102.03692.2e-11
2020-04-17102.5351102.53512.1e-11
2020-04-18102.4455102.44552.0e-11
2020-04-19102.0783102.07832.0e-11
2020-04-20102.7484102.74842.0e-11
2020-04-21102.4437102.44371.9e-11
2020-04-22103.3646103.36461.9e-11
2020-04-23104.2849104.28491.8e-11
2020-04-24104.7224104.72241.7e-11
2020-04-25104.2269104.22691.7e-11
2020-04-26104.1499104.14991.6e-11
2020-04-27103.9822103.98221.6e-11
2020-04-28104.4070104.40701.6e-11
2020-04-29105.2763105.27631.5e-11

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit16.2 ms28.3 ms1.7× faster
Predict1.08 ms3.55 ms3.3× faster
Save model to JSON28 µs481 µs17× faster
Load model from JSON148 µs2.50 ms17× faster
Load and predict in a new process169 ms1.49 s8.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": "absmax",
    "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": [],
    "regressors": []
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.