Skip to content

First 232 days, absmax scaling ​

match ← All flat growth benchmarks

The 256-day mixed-feature history cut to its first 232 days: the training window of one cross-validation fold.

Input ​

benchmark/inputs/v1/flat-mixed-components-large-prefix-232.json: 232 history rows and 7 forecast rows.

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-08-2045.953445.95344.3e-8
2020-08-2148.656748.65679.5e-9
2020-08-2241.067141.06719.2e-8
2020-08-2335.000935.00094.9e-8
2020-08-2422.559922.55991.2e-7
2020-08-2524.052724.05274.7e-8
2020-08-2634.993034.99302.7e-8

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit2.98 ms8.86 ms3.0× faster
Predict136 µs4.71 ms35× faster
Save model to JSON19 µs752 µs39× faster
Load model from JSON193 µs3.78 ms20× faster
Load and predict in a new process157 ms1.41 s9.0× 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.