Skip to content

First 70 days, minmax scaling ​

match ← All flat growth benchmarks

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

Input ​

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

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-03-1135.002135.00211.4e-7
2020-03-1262.871062.87104.1e-7
2020-03-1369.846669.84662.8e-7
2020-03-1450.477850.47784.9e-8
2020-03-1520.635220.63521.1e-7
2020-03-1635.002135.00211.4e-7
2020-03-177.17187.17181.0e-7

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit2.04 ms7.85 ms3.9× faster
Predict166 µs4.69 ms28× faster
Save model to JSON21 µs618 µs30× faster
Load model from JSON208 µs3.59 ms17× faster
Load and predict in a new process157 ms1.43 s9.1× 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": "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",
        "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.