Skip to content

Multiplicative regressor ​

match ← All logistic growth benchmarks

A promotion regressor that scales the trend.

Input ​

benchmark/inputs/v2/logistic-regressor-multiplicative-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.187714.18773.2e-11
2020-01-0214.719814.71983.2e-11
2020-01-0315.727315.72733.5e-11
2020-01-0415.833815.83383.4e-11
2020-01-0516.416316.41633.5e-11
2020-01-0617.016117.01613.5e-11
2020-01-0717.633317.63333.6e-11
2020-01-0818.268318.26833.7e-11
2020-01-0919.489819.48983.9e-11
2020-01-1019.591919.59193.8e-11
2020-01-1120.280920.28093.8e-11
2020-01-1220.988120.98813.9e-11
2020-01-1321.713621.71364.0e-11
2020-01-1422.457522.45754.0e-11
2020-01-1523.917623.91764.3e-11
2020-01-1624.000324.00034.1e-11
2020-01-1724.799124.79914.2e-11
2020-01-1825.616125.61614.2e-11
2020-01-1926.451226.45124.3e-11
2020-01-2027.304127.30414.3e-11
2020-01-2129.021529.02154.6e-11
2020-01-2229.062729.06274.4e-11
2020-01-2329.967829.96784.4e-11
2020-01-2430.889730.88974.5e-11
2020-01-2531.828131.82814.5e-11
2020-01-2632.782432.78244.5e-11
2020-01-2734.766834.76684.8e-11
2020-01-2834.737334.73734.5e-11
2020-01-2935.736835.73684.6e-11
2020-01-3036.750136.75014.6e-11
2020-01-3137.776837.77684.6e-11
2020-02-0138.816138.81614.6e-11
2020-02-0241.065641.06564.8e-11
2020-02-0340.929940.92994.5e-11
2020-02-0442.002842.00284.5e-11
2020-02-0543.085443.08544.5e-11
2020-02-0644.176844.17684.5e-11
2020-02-0745.276145.27614.4e-11
2020-02-0847.776547.77654.7e-11
2020-02-0947.495447.49544.4e-11
2020-02-1048.613648.61364.3e-11
2020-02-1149.736149.73614.3e-11
2020-02-1250.862050.86204.2e-11
2020-02-1351.990251.99024.2e-11
2020-02-1454.716554.71654.4e-11
2020-02-1554.250154.25014.0e-11
2020-02-1655.379955.37994.0e-11
2020-02-1756.508156.50813.9e-11
2020-02-1857.634057.63403.8e-11
2020-02-1958.756558.75653.8e-11
2020-02-2061.674361.67434.0e-11
2020-02-2160.987960.98793.6e-11
2020-02-2262.094962.09493.5e-11
2020-02-2363.195063.19503.4e-11
2020-02-2464.287364.28733.3e-11
2020-02-2565.371165.37113.3e-11
2020-02-2668.442568.44253.5e-11
2020-02-2767.509867.50983.1e-11
2020-02-2868.563268.56323.0e-11
2020-02-2969.605269.60522.9e-11
2020-03-0170.635170.63512.8e-11
2020-03-0271.652271.65222.7e-11
2020-03-0374.839874.83983.0e-11
2020-03-0473.646273.64622.5e-11
2020-03-0574.621974.62192.4e-11
2020-03-0675.583075.58302.3e-11
2020-03-0776.528976.52892.2e-11
2020-03-0877.459377.45932.2e-11
2020-03-0980.729580.72952.4e-11
2020-03-1079.272679.27262.0e-11
2020-03-1180.154880.15481.9e-11
2020-03-1281.020681.02061.8e-11
2020-03-1381.869781.86971.7e-11
2020-03-1482.702082.70201.7e-11
2020-03-1586.027586.02752.0e-11
2020-03-1684.315884.31581.5e-11
2020-03-1785.097385.09731.4e-11
2020-03-1885.861885.86181.3e-11
2020-03-1986.609486.60941.3e-11
2020-03-2087.340187.34011.2e-11
2020-03-2190.700590.70051.5e-11
2020-03-2288.751288.75121.1e-11
2020-03-2389.431989.43191.0e-11
2020-03-2490.096390.09639.5e-12
2020-03-2590.744490.74448.9e-12
2020-03-2691.376491.37648.4e-12
2020-03-2794.757694.75761.2e-11
2020-03-2892.593492.59347.3e-12
2020-03-2993.178893.17886.8e-12
2020-03-3093.749093.74906.3e-12
2020-03-3194.304494.30445.9e-12
2020-04-0194.845394.84535.4e-12
2020-04-0298.238398.23838.9e-12
2020-04-0395.884495.88444.6e-12
2020-04-0496.383396.38334.2e-12
2020-04-0596.868796.86873.9e-12
2020-04-0697.341197.34113.5e-12
2020-04-0797.800697.80063.2e-12
2020-04-08101.2005101.20056.9e-12
2020-04-0998.682598.68252.6e-12
2020-04-1099.105599.10552.3e-12
2020-04-1199.516999.51692.1e-12
2020-04-1299.917099.91701.8e-12
2020-04-13100.3061100.30611.6e-12
2020-04-14103.7107103.71075.4e-12
2020-04-15101.0526101.05261.2e-12
2020-04-16101.4107101.41079.5e-13
2020-04-17101.7589101.75897.7e-13
2020-04-18102.0976102.09766.3e-13
2020-04-19102.4272102.42724.4e-13
2020-04-20105.8359105.83594.3e-12
2020-04-21103.0597103.05971.7e-13
2020-04-22103.3633103.36334.3e-14
2020-04-23103.6588103.65887.1e-14
2020-04-24103.9463103.94631.8e-13
2020-04-25104.2263104.22632.8e-13
2020-04-26107.6397107.63973.7e-12
2020-04-27104.7645104.76455.0e-13
2020-04-28105.0231105.02315.5e-13
2020-04-29105.2751105.27516.1e-13

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit11.3 ms18.6 ms1.6× faster
Predict1.06 ms3.63 ms3.4× faster
Save model to JSON26 µs481 µs18× faster
Load model from JSON135 µs2.47 ms18× faster
Load and predict in a new process167 ms1.42 s8.5× 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": [
      {
        "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.