Skip to content

Additive effects, eight months, minmax scaling ​

match ← All flat growth benchmarks

The same additive features on 256 daily rows.

Input ​

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

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-09-1328.919628.91962.3e-11
2020-09-1421.358721.35871.4e-11
2020-09-1524.060724.06073.0e-12
2020-09-1634.992834.99281.4e-12
2020-09-1736.200836.20081.0e-11
2020-09-1848.656748.65671.5e-11
2020-09-1941.071941.07192.3e-11
2020-09-2028.919628.91962.3e-11
2020-09-2121.358721.35871.4e-11
2020-09-2235.000635.00061.1e-11
2020-09-2336.193036.19302.7e-12
2020-09-2445.944145.94413.7e-12
2020-09-2548.656748.65671.5e-11
2020-09-2641.071941.07192.3e-11
2020-09-2735.000635.00061.1e-11
2020-09-2821.358721.35871.4e-11
2020-09-2925.260925.26091.8e-12
2020-09-3034.992834.99281.4e-12
2020-10-0145.944145.94413.7e-12
2020-10-0235.000635.00061.1e-11
2020-10-0341.071941.07192.3e-11
2020-10-0428.919628.91962.3e-11
2020-10-0522.558922.55891.3e-11
2020-10-0624.060724.06073.0e-12
2020-10-0735.000635.00061.1e-11
2020-10-0845.944145.94413.7e-12
2020-10-0948.656748.65671.5e-11
2020-10-1041.071941.07192.3e-11
2020-10-1130.119730.11972.1e-11
2020-10-1235.000635.00061.1e-11
2020-10-1324.060724.06073.0e-12
2020-10-1434.992834.99281.4e-12
2020-10-1545.944145.94413.7e-12
2020-10-1648.656748.65671.5e-11
2020-10-1736.200836.20081.0e-11
2020-10-1828.919628.91962.3e-11
2020-10-1921.358721.35871.4e-11
2020-10-2024.060724.06073.0e-12
2020-10-2134.992834.99281.4e-12
2020-10-2235.000635.00061.1e-11
2020-10-2349.856949.85691.3e-11
2020-10-2441.071941.07192.3e-11
2020-10-2528.919628.91962.3e-11
2020-10-2621.358721.35871.4e-11
2020-10-2735.000635.00061.1e-11
2020-10-2834.992834.99281.4e-12
2020-10-2947.144247.14422.5e-12
2020-10-3048.656748.65671.5e-11
2020-10-3141.071941.07192.3e-11
2020-11-0135.000635.00061.1e-11
2020-11-0221.358721.35871.4e-11
2020-11-0324.060724.06073.0e-12
2020-11-0436.193036.19302.7e-12
2020-11-0545.944145.94413.7e-12
2020-11-0635.000635.00061.1e-11
2020-11-0741.071941.07192.3e-11
2020-11-0828.919628.91962.3e-11
2020-11-0921.358721.35871.4e-11
2020-11-1025.260925.26091.8e-12
2020-11-1135.000635.00061.1e-11
2020-11-1245.944145.94413.7e-12
2020-11-1348.656748.65671.5e-11
2020-11-1441.071941.07192.3e-11
2020-11-1528.919628.91962.3e-11

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows75 µs643 µs8.6× faster
Fit2.16 ms8.99 ms4.2× faster
Predict529 µs4.67 ms8.8× faster
Fit and predict2.12 ms13.3 ms6.3× faster
Convert, fit and predict2.16 ms14.1 ms6.5× faster
First forecast in a new process170 ms1.45 s8.5× faster
Save model to JSON27 µs842 µs32× faster
Load model from JSON121 µs3.91 ms32× faster
Load and predict in a new process159 ms1.41 s8.8× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "flat-map-additive-v1"
  },
  "configuration": {
    "growth": "flat",
    "scaling": "minmax",
    "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"
      }
    ],
    "events": [
      {
        "name": "campaign",
        "date": "2020-01-22",
        "lowerWindowDays": 0,
        "upperWindowDays": 0,
        "priorScale": 10
      }
    ],
    "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.