First 77 days, minmax 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: 8.9e-6 (< 0.0001% of the input's range).
Every forecast row from both libraries.
| Date | Effect Prophet | Python Prophet | Difference |
|---|---|---|---|
| 2020-03-18 | 34.9718 | 34.9718 | 4.9e-6 |
| 2020-03-19 | 62.8559 | 62.8559 | 5.2e-6 |
| 2020-03-20 | 69.8235 | 69.8235 | 5.9e-7 |
| 2020-03-21 | 36.2037 | 36.2037 | 1.3e-6 |
| 2020-03-22 | 19.4729 | 19.4729 | 4.1e-6 |
| 2020-03-23 | 0.2319 | 0.2319 | 8.9e-6 |
| 2020-03-24 | 7.1594 | 7.1594 | 4.3e-6 |
Timing
Median of all measured repetitions.
| Step | Effect Prophet | Python Prophet | Effect Prophet is |
|---|---|---|---|
| Fit | 2.16 ms | 8.16 ms | 3.8× faster |
| Predict | 164 µs | 4.73 ms | 29× faster |
| Save model to JSON | 25 µs | 615 µs | 25× faster |
| Load model from JSON | 225 µs | 3.61 ms | 16× faster |
| Load and predict in a new process | 158 ms | 1.50 s | 9.5× 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": "minmax",
"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
}
}