Skip to content

First 63 days, absmax scaling ​

match ← All flat growth benchmarks

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

Input ​

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

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-03-0434.978034.97801.2e-7
2020-03-0545.940545.94053.0e-8
2020-03-0635.001935.00191.0e-7
2020-03-0741.064541.06457.7e-9
2020-03-0828.893928.89391.7e-7
2020-03-0922.577522.57752.8e-7
2020-03-1024.082624.08262.6e-7

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit2.24 ms7.62 ms3.4× faster
Predict163 µs4.68 ms29× faster
Save model to JSON20 µs625 µs31× faster
Load model from JSON214 µs3.64 ms17× faster
Load and predict in a new process152 ms1.45 s9.6× 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.