Skip to content

Weekly pattern ​

match ← All logistic growth benchmarks

A custom weekly seasonality on the basic curve.

Input ​

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

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-01-0114.188914.18895.2e-8
2020-01-0215.346215.34627.8e-8
2020-01-0316.048416.04848.5e-8
2020-01-0416.180016.18006.6e-8
2020-01-0516.067416.06743.6e-8
2020-01-0616.233216.23322.0e-8
2020-01-0717.012717.01272.6e-8
2020-01-0818.269418.26944.7e-8
2020-01-0919.547519.54757.3e-8
2020-01-1020.371920.37197.8e-8
2020-01-1120.627120.62715.9e-8
2020-01-1220.639220.63922.8e-8
2020-01-1320.930820.93081.1e-8
2020-01-1421.836921.83691.6e-8
2020-01-1523.220923.22093.6e-8
2020-01-1624.626724.62676.1e-8
2020-01-1725.579225.57926.6e-8
2020-01-1825.962425.96244.5e-8
2020-01-1926.102326.10231.3e-8
2020-01-2026.521326.52134.6e-9
2020-01-2127.554127.55414.3e-10
2020-01-2229.063929.06391.8e-8
2020-01-2330.594330.59434.2e-8
2020-01-2431.669831.66984.6e-8
2020-01-2532.174432.17442.5e-8
2020-01-2632.433632.43368.4e-9
2020-01-2732.969632.96962.7e-8
2020-01-2834.116834.11682.4e-8
2020-01-2935.738035.73806.3e-9
2020-01-3037.376637.37661.7e-8
2020-01-3138.556938.55692.0e-8
2020-02-0139.162539.16252.1e-9
2020-02-0239.518639.51863.6e-8
2020-02-0340.147140.14715.5e-8
2020-02-0441.382341.38235.2e-8
2020-02-0543.086743.08673.5e-8
2020-02-0644.803344.80331.3e-8
2020-02-0746.056246.05621.0e-8
2020-02-0846.728846.72883.2e-8
2020-02-0947.146747.14675.9e-8
2020-02-1047.830947.83097.1e-8
2020-02-1149.115749.11576.1e-8
2020-02-1250.863450.86343.6e-8
2020-02-1352.616952.61695.7e-9
2020-02-1453.900253.90024.6e-9
2020-02-1554.596754.59671.0e-8
2020-02-1655.031355.03133.6e-8
2020-02-1755.725655.72564.8e-8
2020-02-1857.013757.01373.8e-8
2020-02-1958.758158.75811.3e-8
2020-02-2060.501660.50161.7e-8
2020-02-2161.768361.76832.8e-8
2020-02-2262.441562.44151.3e-8
2020-02-2362.846662.84661.3e-8
2020-02-2463.504963.50492.5e-8
2020-02-2564.751064.75101.5e-8
2020-02-2666.447266.44729.0e-9
2020-02-2768.136768.13673.9e-8
2020-02-2869.343869.34384.9e-8
2020-02-2969.952069.95203.4e-8
2020-03-0170.286870.28686.9e-9
2020-03-0270.870070.87005.6e-9
2020-03-0372.036172.03613.8e-9
2020-03-0473.647973.64792.8e-8
2020-03-0575.248975.24895.7e-8
2020-03-0676.363676.36366.6e-8
2020-03-0776.875776.87575.0e-8
2020-03-0877.111177.11112.3e-8
2020-03-0977.591877.59189.4e-9
2020-03-1078.652678.65261.8e-8
2020-03-1180.156680.15664.1e-8
2020-03-1281.647681.64767.0e-8
2020-03-1382.650382.65037.8e-8
2020-03-1483.048883.04886.1e-8
2020-03-1583.169183.16913.3e-8
2020-03-1683.533683.53361.9e-8
2020-03-1784.477384.47732.7e-8
2020-03-1885.863685.86364.9e-8
2020-03-1987.236487.23647.7e-8
2020-03-2088.120788.12078.5e-8
2020-03-2188.400888.40086.7e-8
2020-03-2288.403088.40303.8e-8
2020-03-2388.649788.64972.4e-8
2020-03-2489.476289.47623.1e-8
2020-03-2590.746190.74615.2e-8
2020-03-2692.003492.00348.0e-8
2020-03-2792.773392.77338.7e-8
2020-03-2892.940292.94026.9e-8
2020-03-2992.830492.83043.9e-8
2020-03-3092.966792.96672.4e-8
2020-03-3193.684393.68433.1e-8
2020-04-0194.847094.84705.2e-8
2020-04-0295.998795.99877.8e-8
2020-04-0396.664996.66498.5e-8
2020-04-0496.730096.73006.7e-8
2020-04-0596.520396.52033.7e-8
2020-04-0696.558796.55872.1e-8
2020-04-0797.180597.18052.8e-8
2020-04-0898.249398.24934.8e-8
2020-04-0999.309399.30937.5e-8
2020-04-1099.885999.88598.1e-8
2020-04-1199.863599.86356.3e-8
2020-04-1299.568499.56843.3e-8
2020-04-1399.523699.52361.7e-8
2020-04-14100.0643100.06432.3e-8
2020-04-15101.0542101.05424.4e-8
2020-04-16102.0374102.03747.0e-8
2020-04-17102.5392102.53927.6e-8
2020-04-18102.4442102.44425.8e-8
2020-04-19102.0786102.07862.7e-8
2020-04-20101.9652101.96521.1e-8
2020-04-21102.4394102.43941.7e-8
2020-04-22103.3647103.36473.8e-8
2020-04-23104.2854104.28546.4e-8
2020-04-24104.7266104.72667.1e-8
2020-04-25104.5728104.57285.2e-8
2020-04-26104.1503104.15032.2e-8
2020-04-27103.9818103.98185.6e-9
2020-04-28104.4027104.40271.2e-8
2020-04-29105.2764105.27643.2e-8

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit15.6 ms27.5 ms1.8× faster
Predict944 µs3.45 ms3.7× faster
Save model to JSON27 µs482 µs18× faster
Load model from JSON166 µs2.55 ms15× faster
Load and predict in a new process167 ms1.57 s9.4× 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
      }
    ],
    "events": [],
    "regressors": []
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.