Skip to content

Additive regressor ​

match ← All logistic growth benchmarks

A promotion regressor that adds to the forecast.

Input ​

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

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-01-0114.187514.18759.3e-12
2020-01-0214.719614.71969.4e-12
2020-01-0316.470816.47081.1e-11
2020-01-0415.833615.83369.4e-12
2020-01-0516.416016.41609.5e-12
2020-01-0617.015817.01589.5e-12
2020-01-0717.633117.63319.5e-12
2020-01-0818.268018.26809.4e-12
2020-01-0920.123520.12351.1e-11
2020-01-1019.591719.59179.4e-12
2020-01-1120.280720.28079.3e-12
2020-01-1220.987920.98799.2e-12
2020-01-1321.713421.71349.2e-12
2020-01-1422.457322.45739.1e-12
2020-01-1524.422124.42211.1e-11
2020-01-1624.000024.00008.8e-12
2020-01-1724.798924.79898.7e-12
2020-01-1825.615925.61598.5e-12
2020-01-1926.450926.45098.3e-12
2020-01-2027.303927.30398.1e-12
2020-01-2129.377129.37719.8e-12
2020-01-2229.062529.06257.6e-12
2020-01-2329.967629.96767.4e-12
2020-01-2430.889530.88957.1e-12
2020-01-2531.827931.82796.8e-12
2020-01-2632.782332.78236.5e-12
2020-01-2734.954834.95488.1e-12
2020-01-2834.737134.73715.9e-12
2020-01-2935.736635.73665.5e-12
2020-01-3036.750036.75005.1e-12
2020-01-3137.776737.77674.7e-12
2020-02-0138.816038.81604.3e-12
2020-02-0241.070041.07005.8e-12
2020-02-0340.929840.92983.5e-12
2020-02-0442.002742.00273.1e-12
2020-02-0543.085343.08532.6e-12
2020-02-0644.176744.17672.2e-12
2020-02-0745.276045.27601.7e-12
2020-02-0847.585147.58513.1e-12
2020-02-0947.495447.49547.4e-13
2020-02-1048.613648.61362.6e-13
2020-02-1149.736149.73612.1e-13
2020-02-1250.862050.86207.1e-13
2020-02-1351.990351.99031.2e-12
2020-02-1454.322754.32272.2e-13
2020-02-1554.250254.25022.2e-12
2020-02-1655.379955.37992.7e-12
2020-02-1756.508256.50823.1e-12
2020-02-1857.634157.63413.6e-12
2020-02-1958.756658.75664.1e-12
2020-02-2061.077661.07762.6e-12
2020-02-2160.988060.98805.0e-12
2020-02-2262.095162.09515.4e-12
2020-02-2363.195263.19525.9e-12
2020-02-2464.287564.28756.2e-12
2020-02-2565.371365.37136.7e-12
2020-02-2667.648367.64835.1e-12
2020-02-2767.510067.51007.4e-12
2020-02-2868.563568.56357.8e-12
2020-02-2969.605569.60558.1e-12
2020-03-0170.635470.63548.4e-12
2020-03-0271.652571.65258.8e-12
2020-03-0373.859173.85917.1e-12
2020-03-0473.646573.64659.3e-12
2020-03-0574.622274.62229.5e-12
2020-03-0675.583375.58339.8e-12
2020-03-0776.529276.52921.0e-11
2020-03-0877.459777.45971.0e-11
2020-03-0979.577079.57708.5e-12
2020-03-1079.272979.27291.1e-11
2020-03-1180.155280.15521.1e-11
2020-03-1281.020981.02091.1e-11
2020-03-1381.870081.87001.1e-11
2020-03-1482.702382.70231.1e-11
2020-03-1584.720484.72049.2e-12
2020-03-1684.316284.31621.1e-11
2020-03-1785.097785.09771.1e-11
2020-03-1885.862285.86221.1e-11
2020-03-1986.609786.60971.1e-11
2020-03-2087.340487.34041.1e-11
2020-03-2189.257089.25709.4e-12
2020-03-2288.751688.75161.1e-11
2020-03-2389.432389.43231.1e-11
2020-03-2490.096690.09661.1e-11
2020-03-2590.744790.74471.1e-11
2020-03-2691.376891.37681.1e-11
2020-03-2793.195793.19579.1e-12
2020-03-2892.593892.59381.1e-11
2020-03-2993.179193.17911.1e-11
2020-03-3093.749393.74931.1e-11
2020-03-3194.304894.30481.1e-11
2020-04-0194.845694.84561.0e-11
2020-04-0296.574896.57488.4e-12
2020-04-0395.884795.88471.0e-11
2020-04-0496.383696.38361.0e-11
2020-04-0596.869196.86919.9e-12
2020-04-0697.341497.34149.8e-12
2020-04-0797.800997.80099.6e-12
2020-04-0899.450699.45067.5e-12
2020-04-0998.682898.68289.3e-12
2020-04-1099.105899.10589.2e-12
2020-04-1199.517199.51719.0e-12
2020-04-1299.917299.91728.8e-12
2020-04-13100.3064100.30648.7e-12
2020-04-14101.8875101.88756.6e-12
2020-04-15101.0529101.05298.3e-12
2020-04-16101.4109101.41098.2e-12
2020-04-17101.7592101.75928.0e-12
2020-04-18102.0979102.09797.8e-12
2020-04-19102.4274102.42747.7e-12
2020-04-20103.9507103.95075.6e-12
2020-04-21103.0600103.06007.3e-12
2020-04-22103.3635103.36357.1e-12
2020-04-23103.6590103.65907.0e-12
2020-04-24103.9466103.94666.8e-12
2020-04-25104.2265104.22656.6e-12
2020-04-26105.7018105.70184.6e-12
2020-04-27104.7647104.76476.3e-12
2020-04-28105.0233105.02336.2e-12
2020-04-29105.2753105.27536.0e-12

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit7.94 ms15.8 ms2.0× faster
Predict1.08 ms3.29 ms3.1× faster
Save model to JSON28 µs480 µs17× faster
Load model from JSON131 µs2.44 ms19× faster
Load and predict in a new process158 ms1.43 s9.1× 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"
      }
    ]
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.