Mixed effects, both libraries on default settings
match ← All flat growth benchmarksThe mixed-effects rows with absmax scaling, where both libraries pick their own optimizer. The other mixed-effects cases pin both to L-BFGS.
Input
benchmark/inputs/v1/flat-mixed-components.json: 96 history rows and 24 forecast rows.
Output
Largest difference: 0.021 (0.073% of the input's range).
Every forecast row from both libraries.
| Date | Effect Prophet | Python Prophet | Difference |
|---|---|---|---|
| 2020-04-06 | 21.3445 | 21.3492 | 0.0047 |
| 2020-04-07 | 24.0577 | 24.0640 | 0.0064 |
| 2020-04-08 | 36.1988 | 36.2142 | 0.015 |
| 2020-04-09 | 45.9285 | 45.9466 | 0.018 |
| 2020-04-10 | 34.9902 | 35.0026 | 0.012 |
| 2020-04-11 | 41.0592 | 41.0756 | 0.016 |
| 2020-04-12 | 28.9157 | 28.9241 | 0.0085 |
| 2020-04-13 | 21.3445 | 21.3492 | 0.0047 |
| 2020-04-14 | 25.2552 | 25.2655 | 0.010 |
| 2020-04-15 | 34.9902 | 35.0026 | 0.012 |
| 2020-04-16 | 45.9285 | 45.9466 | 0.018 |
| 2020-04-17 | 48.6246 | 48.6457 | 0.021 |
| 2020-04-18 | 41.0592 | 41.0756 | 0.016 |
| 2020-04-19 | 28.9157 | 28.9241 | 0.0085 |
| 2020-04-20 | 36.1877 | 36.2040 | 0.016 |
| 2020-04-21 | 24.0577 | 24.0640 | 0.0064 |
| 2020-04-22 | 35.0012 | 35.0127 | 0.011 |
| 2020-04-23 | 45.9285 | 45.9466 | 0.018 |
| 2020-04-24 | 48.6246 | 48.6457 | 0.021 |
| 2020-04-25 | 34.9902 | 35.0026 | 0.012 |
| 2020-04-26 | 30.1132 | 30.1256 | 0.012 |
| 2020-04-27 | 21.3445 | 21.3492 | 0.0047 |
| 2020-04-28 | 24.0577 | 24.0640 | 0.0064 |
| 2020-04-29 | 35.0012 | 35.0127 | 0.011 |
Timing
Median of all measured repetitions.
| Step | Effect Prophet | Python Prophet | Effect Prophet is |
|---|---|---|---|
| Convert input rows | 59 µs | 504 µs | 8.5× faster |
| Fit | 3.85 ms | 43.2 ms | 11× faster |
| Predict | 374 µs | 4.55 ms | 12× faster |
| Fit and predict | 3.17 ms | 48.4 ms | 15× faster |
| Convert, fit and predict | 2.98 ms | 48.7 ms | 16× faster |
| First forecast in a new process | 169 ms | 1.45 s | 8.6× faster |
| Save model to JSON | 34 µs | 625 µs | 18× faster |
| Load model from JSON | 129 µs | 3.62 ms | 28× faster |
| Load and predict in a new process | 167 ms | 1.41 s | 8.4× faster |
Settings
The case declaration both libraries ran.
json
{
"kind": "map",
"comparison": {
"kind": "equivalent-objective",
"evidenceId": "flat-map-mixed-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"
}
]
},
"pythonOptimizer": {
"algorithm": "Auto",
"maxIterations": 10000,
"newtonFallback": true,
"sigFigs": 12
}
}