Skip to content

Country, custom events and mixed features ​

match ← All flat growth benchmarks

96 days with US country holidays, custom events, conditional weekly seasonality and a promotion regressor. Holiday effects are multiplicative.

Input ​

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

Output ​

Largest difference: 3.0e-5 (0.00062% of the input's range).

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2024-12-2521.761121.76113.0e-5
2025-01-0123.040623.04071.1e-5
2025-01-0220.609520.60959.9e-6
2025-01-0520.745120.74503.0e-5

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows31 µs518 µs17× faster
Fit17.7 ms57.0 ms3.2× faster
Predict221 µs6.27 ms28× faster
Fit and predict17.5 ms62.1 ms3.5× faster
Convert, fit and predict17.4 ms63.8 ms3.7× faster
First forecast in a new process189 ms1.76 s9.3× faster
Save model to JSON100 µs828 µs8.3× faster
Load model from JSON830 µs5.00 ms6.0× faster
Load and predict in a new process169 ms1.82 s11× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "country-calendar-public-v1"
  },
  "configuration": {
    "growth": "flat",
    "countryHolidays": {
      "country": "US",
      "coverage": "reject-known-gaps",
      "priorScale": 10
    },
    "scaling": "absmax",
    "seasonalityMode": "additive",
    "holidaysMode": "multiplicative",
    "changepoints": {
      "mode": "auto",
      "count": 25,
      "range": 0.8
    },
    "changepointPriorScale": 0.05,
    "seasonalities": [
      {
        "name": "weekly-active",
        "periodDays": 7,
        "fourierOrder": 1,
        "priorScale": 10,
        "conditionName": "active"
      }
    ],
    "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": [
      {
        "name": "promotion",
        "priorScale": 10,
        "standardization": "never"
      }
    ]
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.