First 77 days, absmax scaling
match ← All flat growth benchmarksThe 96-day mixed-feature history cut to its first 77 days: the training window of one cross-validation fold.
Input
benchmark/inputs/v1/flat-mixed-components-prefix-77.json: 77 history rows and 7 forecast rows.
Output
Largest difference: 2.0e-7 (< 0.0001% of the input's range).
Every forecast row from both libraries.
| Date | Effect Prophet | Python Prophet | Difference |
|---|---|---|---|
| 2020-03-18 | 34.9897 | 34.9897 | 3.0e-9 |
| 2020-03-19 | 45.9330 | 45.9330 | 8.4e-8 |
| 2020-03-20 | 48.6675 | 48.6675 | 5.7e-8 |
| 2020-03-21 | 36.2037 | 36.2037 | 5.4e-8 |
| 2020-03-22 | 28.9071 | 28.9071 | 1.7e-7 |
| 2020-03-23 | 21.3559 | 21.3559 | 2.0e-7 |
| 2020-03-24 | 24.0746 | 24.0746 | 1.2e-7 |
Timing
Median of all measured repetitions.
| Step | Effect Prophet | Python Prophet | Effect Prophet is |
|---|---|---|---|
| Fit | 2.52 ms | 7.51 ms | 3.0× faster |
| Predict | 186 µs | 4.65 ms | 25× faster |
| Save model to JSON | 21 µs | 630 µs | 30× faster |
| Load model from JSON | 209 µs | 3.52 ms | 17× faster |
| Load and predict in a new process | 156 ms | 1.43 s | 9.2× faster |
Settings
The case declaration both libraries ran.
json
{
"kind": "map",
"comparison": {
"kind": "equivalent-objective",
"evidenceId": "flat-growth-mixed-scaling-v1"
},
"configuration": {
"growth": "flat",
"scaling": "absmax",
"seasonalityMode": "additive",
"holidaysMode": "additive",
"changepoints": {
"mode": "auto",
"count": 25,
"range": 0.8
},
"changepointPriorScale": 0.05,
"seasonalities": [
{
"name": "weekly-custom",
"periodDays": 7,
"fourierOrder": 2,
"priorScale": 10,
"conditionName": "active",
"mode": "multiplicative"
}
],
"events": [
{
"name": "campaign",
"date": "2020-01-22",
"lowerWindowDays": 0,
"upperWindowDays": 0,
"priorScale": 10
}
],
"regressors": [
{
"name": "promotion",
"priorScale": 10,
"standardization": "never"
}
]
},
"effectOptimizer": {
"algorithm": "lbfgs",
"maxIterations": 10000,
"fallback": "none",
"lbfgs": {
"historySize": 5,
"initAlpha": 0.001,
"tolObj": 1e-12,
"tolRelObj": 10000,
"tolGrad": 1e-8,
"tolRelGrad": 10000000,
"tolParam": 1e-8
}
},
"pythonOptimizer": {
"algorithm": "LBFGS",
"maxIterations": 10000,
"newtonFallback": false
}
}