Country, custom events and mixed features
match ← All flat growth benchmarks96 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.
| Date | Effect Prophet | Python Prophet | Difference |
|---|---|---|---|
| 2024-12-25 | 21.7611 | 21.7611 | 3.0e-5 |
| 2025-01-01 | 23.0406 | 23.0407 | 1.1e-5 |
| 2025-01-02 | 20.6095 | 20.6095 | 9.9e-6 |
| 2025-01-05 | 20.7451 | 20.7450 | 3.0e-5 |
Timing
Median of all measured repetitions.
| Step | Effect Prophet | Python Prophet | Effect Prophet is |
|---|---|---|---|
| Convert input rows | 31 µs | 518 µs | 17× faster |
| Fit | 17.7 ms | 57.0 ms | 3.2× faster |
| Predict | 221 µs | 6.27 ms | 28× faster |
| Fit and predict | 17.5 ms | 62.1 ms | 3.5× faster |
| Convert, fit and predict | 17.4 ms | 63.8 ms | 3.7× faster |
| First forecast in a new process | 189 ms | 1.76 s | 9.3× faster |
| Save model to JSON | 100 µs | 828 µs | 8.3× faster |
| Load model from JSON | 830 µs | 5.00 ms | 6.0× faster |
| Load and predict in a new process | 169 ms | 1.82 s | 11× 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
}
}