First 225 days, absmax scaling
match ← All flat growth benchmarksThe 256-day mixed-feature history cut to its first 225 days: the training window of one cross-validation fold.
Input
benchmark/inputs/v1/flat-mixed-components-large-prefix-225.json: 225 history rows and 7 forecast rows.
Output
Largest difference: 2.4e-7 (< 0.0001% of the input's range).
Every forecast row from both libraries.
| Date | Effect Prophet | Python Prophet | Difference |
|---|---|---|---|
| 2020-08-13 | 35.0005 | 35.0005 | 1.6e-7 |
| 2020-08-14 | 48.6525 | 48.6525 | 1.8e-7 |
| 2020-08-15 | 41.0662 | 41.0662 | 2.4e-7 |
| 2020-08-16 | 28.9251 | 28.9251 | 2.4e-7 |
| 2020-08-17 | 21.3585 | 21.3585 | 1.8e-7 |
| 2020-08-18 | 36.1993 | 36.1993 | 1.6e-7 |
| 2020-08-19 | 34.9960 | 34.9960 | 7.3e-8 |
Timing
Median of all measured repetitions.
| Step | Effect Prophet | Python Prophet | Effect Prophet is |
|---|---|---|---|
| Fit | 3.48 ms | 8.67 ms | 2.5× faster |
| Predict | 147 µs | 4.64 ms | 32× faster |
| Save model to JSON | 20 µs | 775 µs | 39× faster |
| Load model from JSON | 192 µs | 3.77 ms | 20× faster |
| Load and predict in a new process | 160 ms | 1.45 s | 9.0× 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
}
}