US holidays, additive
match ← All linear growth benchmarks96 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.8e-12 (< 0.0001% of the input's range).
Every forecast row from both libraries.
| Date | Effect Prophet | Python Prophet | Difference |
|---|---|---|---|
| 2024-12-25 | 20.1198 | 20.1198 | 6.8e-12 |
| 2025-01-01 | 23.1577 | 23.1577 | 6.0e-12 |
| 2025-01-02 | 20.1232 | 20.1232 | 6.8e-12 |
| 2025-01-05 | 21.5688 | 21.5688 | 5.7e-12 |
Timing
Median of all measured repetitions.
| Step | Effect Prophet | Python Prophet | Effect Prophet is |
|---|---|---|---|
| Convert input rows | 14 µs | 469 µs | 33× faster |
| Fit | 4.71 ms | 20.7 ms | 4.4× faster |
| Predict | 263 µs | 5.53 ms | 21× faster |
| Fit and predict | 4.49 ms | 26.6 ms | 5.9× faster |
| Convert, fit and predict | 4.22 ms | 27.1 ms | 6.4× faster |
| First forecast in a new process | 180 ms | 1.62 s | 9.0× faster |
| Save model to JSON | 140 µs | 707 µs | 5.1× faster |
| Load model from JSON | 1.23 ms | 4.09 ms | 3.3× faster |
| Load and predict in a new process | 168 ms | 1.61 s | 9.6× 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": "additive",
"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
}
}