Skip to content

US holidays, multiplicative ​

match ← All linear growth benchmarks

96 daily rows from 2024, country holidays plus custom January events, including simultaneous activations. Prediction spans late 2024 and early 2025; fitting includes lookup, and saved models embed the country snapshot.

Input ​

benchmark/inputs/v5/country-basic-96.json: 96 history rows and 4 forecast rows.

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2024-12-2520.119820.11984.3e-12
2025-01-0123.176323.17636.0e-12
2025-01-0220.123220.12324.3e-12
2025-01-0521.577821.57785.0e-12

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows13 µs466 µs37× faster
Fit6.21 ms23.8 ms3.8× faster
Predict240 µs5.94 ms25× faster
Fit and predict4.93 ms28.5 ms5.8× faster
Convert, fit and predict4.95 ms27.4 ms5.5× faster
First forecast in a new process172 ms1.63 s9.5× faster
Save model to JSON92 µs675 µs7.3× faster
Load model from JSON968 µs3.98 ms4.1× faster
Load and predict in a new process161 ms1.62 s10× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "country-calendar-public-v1"
  },
  "configuration": {
    "growth": "linear",
    "countryHolidays": {
      "country": "US",
      "coverage": "reject-known-gaps",
      "priorScale": 10
    },
    "scaling": "absmax",
    "seasonalityMode": "additive",
    "holidaysMode": "multiplicative",
    "changepoints": {
      "mode": "auto",
      "count": 2,
      "range": 0.8
    },
    "changepointPriorScale": 0.05,
    "seasonalities": [],
    "events": [
      {
        "name": "launch",
        "date": "2024-01-01",
        "lowerWindowDays": 0,
        "upperWindowDays": 0,
        "priorScale": 10
      },
      {
        "name": "launch",
        "date": "2024-01-05",
        "lowerWindowDays": 0,
        "upperWindowDays": 0,
        "priorScale": 10
      },
      {
        "name": "launch",
        "date": "2025-01-01",
        "lowerWindowDays": 0,
        "upperWindowDays": 0,
        "priorScale": 10
      },
      {
        "name": "launch",
        "date": "2025-01-05",
        "lowerWindowDays": 0,
        "upperWindowDays": 0,
        "priorScale": 10
      }
    ],
    "regressors": []
  },
  "effectOptimizer": {
    "algorithm": "auto",
    "maxIterations": 10000,
    "fallback": "newton",
    "lbfgs": {
      "historySize": 5,
      "initAlpha": 0.001,
      "tolObj": 1e-12,
      "tolRelObj": 10000,
      "tolGrad": 1e-8,
      "tolRelGrad": 10000000,
      "tolParam": 1e-8
    }
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.