Weekly pattern, minmax scaling
match ← All flat growth benchmarksThe same weekly data with minmax scaling.
Input
benchmark/inputs/v1/flat-seasonal.json: 96 history rows and 24 forecast rows.
Output
Largest difference: 2.6e-12 (< 0.0001% of the input's range).
Every forecast row from both libraries.
| Date | Effect Prophet | Python Prophet | Difference |
|---|---|---|---|
| 2020-04-06 | 33.6351 | 33.6351 | 6.5e-13 |
| 2020-04-07 | 33.9097 | 33.9097 | 2.8e-13 |
| 2020-04-08 | 35.0039 | 35.0039 | 1.0e-12 |
| 2020-04-09 | 36.0959 | 36.0959 | 2.3e-12 |
| 2020-04-10 | 36.3665 | 36.3665 | 2.6e-12 |
| 2020-04-11 | 35.6084 | 35.6084 | 1.7e-12 |
| 2020-04-12 | 34.3909 | 34.3909 | 2.3e-13 |
| 2020-04-13 | 33.6351 | 33.6351 | 6.4e-13 |
| 2020-04-14 | 33.9097 | 33.9097 | 2.8e-13 |
| 2020-04-15 | 35.0039 | 35.0039 | 1.0e-12 |
| 2020-04-16 | 36.0959 | 36.0959 | 2.3e-12 |
| 2020-04-17 | 36.3665 | 36.3665 | 2.6e-12 |
| 2020-04-18 | 35.6084 | 35.6084 | 1.7e-12 |
| 2020-04-19 | 34.3909 | 34.3909 | 2.2e-13 |
| 2020-04-20 | 33.6351 | 33.6351 | 6.5e-13 |
| 2020-04-21 | 33.9097 | 33.9097 | 2.8e-13 |
| 2020-04-22 | 35.0039 | 35.0039 | 1.0e-12 |
| 2020-04-23 | 36.0959 | 36.0959 | 2.3e-12 |
| 2020-04-24 | 36.3665 | 36.3665 | 2.6e-12 |
| 2020-04-25 | 35.6084 | 35.6084 | 1.7e-12 |
| 2020-04-26 | 34.3909 | 34.3909 | 2.3e-13 |
| 2020-04-27 | 33.6351 | 33.6351 | 6.4e-13 |
| 2020-04-28 | 33.9097 | 33.9097 | 2.8e-13 |
| 2020-04-29 | 35.0039 | 35.0039 | 1.0e-12 |
Timing
Median of all measured repetitions.
| Step | Effect Prophet | Python Prophet | Effect Prophet is |
|---|---|---|---|
| Fit | 4.23 ms | 20.4 ms | 4.8× faster |
| Predict | 217 µs | 3.15 ms | 14× faster |
| Save model to JSON | 21 µs | 447 µs | 21× faster |
| Load model from JSON | 162 µs | 2.13 ms | 13× faster |
| Load and predict in a new process | 157 ms | 1.51 s | 9.6× faster |
Settings
The case declaration both libraries ran.
json
{
"kind": "map",
"comparison": {
"kind": "equivalent-objective",
"evidenceId": "flat-growth-reduced-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
}
],
"events": [],
"regressors": []
},
"pythonOptimizer": {
"algorithm": "Auto",
"maxIterations": 10000,
"newtonFallback": true,
"sigFigs": 12
}
}