Global prior scales
match ← All linear growth benchmarksThe mixed-feature rows with seasonalityPriorScale 0.1 and holidaysPriorScale 0.05. The seasonality, custom events, regressor and US holidays set no prior of their own, so each takes the global one; the regressor follows holidaysPriorScale, as in Python.
Input
benchmark/inputs/v5/country-mixed-96.json: 96 history rows and 4 forecast rows.
Output
Largest difference: 4.5e-12 (< 0.0001% of the input's range).
Every forecast row from both libraries.
| Date | Effect Prophet | Python Prophet | Difference |
|---|---|---|---|
| 2024-12-25 | 21.8773 | 21.8773 | 4.2e-12 |
| 2025-01-01 | 23.1552 | 23.1552 | 2.1e-12 |
| 2025-01-02 | 20.7286 | 20.7286 | 4.5e-12 |
| 2025-01-05 | 20.8674 | 20.8674 | 3.5e-12 |
Timing
Median of all measured repetitions.
| Step | Effect Prophet | Python Prophet | Effect Prophet is |
|---|---|---|---|
| Convert input rows | 51 µs | 545 µs | 11× faster |
| Fit | 5.64 ms | 27.7 ms | 4.9× faster |
| Predict | 227 µs | 6.37 ms | 28× faster |
| Fit and predict | 5.09 ms | 33.8 ms | 6.6× faster |
| Convert, fit and predict | 4.75 ms | 33.9 ms | 7.1× faster |
| First forecast in a new process | 188 ms | 1.63 s | 8.7× faster |
| Save model to JSON | 132 µs | 745 µs | 5.6× faster |
| Load model from JSON | 1.09 ms | 4.49 ms | 4.1× faster |
| Load and predict in a new process | 169 ms | 1.61 s | 9.5× 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": 0.05
},
"scaling": "absmax",
"seasonalityMode": "additive",
"holidaysMode": "additive",
"seasonalityPriorScale": 0.1,
"holidaysPriorScale": 0.05,
"changepoints": {
"mode": "auto",
"count": 2,
"range": 0.8
},
"changepointPriorScale": 0.05,
"seasonalities": [
{
"name": "weekly-active",
"periodDays": 7,
"fourierOrder": 1,
"conditionName": "active"
}
],
"events": [
{
"name": "launch",
"date": "2024-01-01",
"lowerWindowDays": 0,
"upperWindowDays": 0
},
{
"name": "launch",
"date": "2024-01-05",
"lowerWindowDays": 0,
"upperWindowDays": 0
},
{
"name": "launch",
"date": "2025-01-01",
"lowerWindowDays": 0,
"upperWindowDays": 0
},
{
"name": "launch",
"date": "2025-01-05",
"lowerWindowDays": 0,
"upperWindowDays": 0
}
],
"regressors": [
{
"name": "promotion",
"standardization": "never"
}
]
},
"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
}
}