Skip to content

Mixed effects, eight months, absmax scaling ​

match ← All flat growth benchmarks

The same features on 256 daily rows with absmax scaling.

Input ​

benchmark/inputs/v1/flat-mixed-components-large.json: 256 history rows and 64 forecast rows.

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-09-1328.919628.91961.6e-7
2020-09-1421.358721.35871.9e-7
2020-09-1524.060724.06071.5e-7
2020-09-1634.992834.99285.1e-8
2020-09-1736.200836.20087.4e-8
2020-09-1848.656748.65671.5e-8
2020-09-1941.071941.07196.4e-8
2020-09-2028.919628.91961.6e-7
2020-09-2121.358721.35871.9e-7
2020-09-2235.000635.00068.2e-8
2020-09-2336.193036.19304.3e-8
2020-09-2445.944145.94412.1e-8
2020-09-2548.656748.65671.5e-8
2020-09-2641.071941.07196.4e-8
2020-09-2735.000635.00068.2e-8
2020-09-2821.358721.35871.9e-7
2020-09-2925.260925.26091.4e-7
2020-09-3034.992834.99285.1e-8
2020-10-0145.944145.94412.1e-8
2020-10-0235.000635.00068.2e-8
2020-10-0341.071941.07196.4e-8
2020-10-0428.919628.91961.6e-7
2020-10-0522.558922.55891.9e-7
2020-10-0624.060724.06071.5e-7
2020-10-0735.000635.00068.2e-8
2020-10-0845.944145.94412.1e-8
2020-10-0948.656748.65671.5e-8
2020-10-1041.071941.07196.4e-8
2020-10-1130.119730.11971.5e-7
2020-10-1235.000635.00068.2e-8
2020-10-1324.060724.06071.5e-7
2020-10-1434.992834.99285.1e-8
2020-10-1545.944145.94412.1e-8
2020-10-1648.656748.65671.5e-8
2020-10-1736.200836.20087.4e-8
2020-10-1828.919628.91961.6e-7
2020-10-1921.358721.35871.9e-7
2020-10-2024.060724.06071.5e-7
2020-10-2134.992834.99285.1e-8
2020-10-2235.000635.00068.2e-8
2020-10-2349.856949.85692.4e-8
2020-10-2441.071941.07196.4e-8
2020-10-2528.919628.91961.6e-7
2020-10-2621.358721.35871.9e-7
2020-10-2735.000635.00068.2e-8
2020-10-2834.992834.99285.1e-8
2020-10-2947.144247.14422.9e-8
2020-10-3048.656748.65671.5e-8
2020-10-3141.071941.07196.4e-8
2020-11-0135.000635.00068.2e-8
2020-11-0221.358721.35871.9e-7
2020-11-0324.060724.06071.5e-7
2020-11-0436.193036.19304.3e-8
2020-11-0545.944145.94412.1e-8
2020-11-0635.000635.00068.2e-8
2020-11-0741.071941.07196.4e-8
2020-11-0828.919628.91961.6e-7
2020-11-0921.358721.35871.9e-7
2020-11-1025.260925.26091.4e-7
2020-11-1135.000635.00068.2e-8
2020-11-1245.944145.94412.1e-8
2020-11-1348.656748.65671.5e-8
2020-11-1441.071941.07196.4e-8
2020-11-1528.919628.91961.6e-7

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit3.82 ms8.99 ms2.4× faster
Predict476 µs4.71 ms9.9× faster
Save model to JSON18 µs822 µs45× faster
Load model from JSON176 µs3.84 ms22× faster
Load and predict in a new process158 ms1.40 s8.8× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "flat-growth-mixed-scaling-v1"
  },
  "configuration": {
    "growth": "flat",
    "scaling": "absmax",
    "seasonalityMode": "additive",
    "holidaysMode": "additive",
    "changepoints": {
      "mode": "auto",
      "count": 25,
      "range": 0.8
    },
    "changepointPriorScale": 0.05,
    "seasonalities": [
      {
        "name": "weekly-custom",
        "periodDays": 7,
        "fourierOrder": 2,
        "priorScale": 10,
        "conditionName": "active",
        "mode": "multiplicative"
      }
    ],
    "events": [
      {
        "name": "campaign",
        "date": "2020-01-22",
        "lowerWindowDays": 0,
        "upperWindowDays": 0,
        "priorScale": 10
      }
    ],
    "regressors": [
      {
        "name": "promotion",
        "priorScale": 10,
        "standardization": "never"
      }
    ]
  },
  "effectOptimizer": {
    "algorithm": "lbfgs",
    "maxIterations": 10000,
    "fallback": "none",
    "lbfgs": {
      "historySize": 5,
      "initAlpha": 0.001,
      "tolObj": 1e-12,
      "tolRelObj": 10000,
      "tolGrad": 1e-8,
      "tolRelGrad": 10000000,
      "tolParam": 1e-8
    }
  },
  "pythonOptimizer": {
    "algorithm": "LBFGS",
    "maxIterations": 10000,
    "newtonFallback": false
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.