Skip to content

US holidays, multiplicative ​

match ← All logistic 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-logistic-96.json: 96 history rows and 4 forecast rows.

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2024-12-2578.644478.64442.7e-9
2025-01-0194.673094.67305.3e-9
2025-01-0278.770278.77022.5e-9
2025-01-0586.008586.00854.1e-9

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows15 µs491 µs34× faster
Fit44.9 ms62.6 ms1.4× faster
Predict240 µs5.79 ms24× faster
Fit and predict44.0 ms66.0 ms1.5× faster
Convert, fit and predict44.1 ms67.5 ms1.5× faster
First forecast in a new process239 ms1.68 s7.0× faster
Save model to JSON111 µs723 µs6.5× faster
Load model from JSON1.21 ms4.45 ms3.7× faster
Load and predict in a new process160 ms1.59 s9.9× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "country-calendar-public-v1"
  },
  "configuration": {
    "growth": "logistic",
    "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.