---
url: https://jer-k.github.io/effect-prophet/benchmarks/flat/flat-seasonal-minmax.md
---

# Weekly pattern, minmax scaling

&#x20;[← All flat growth benchmarks](/benchmarks/flat)

The same weekly data with minmax scaling.

## Input

[`benchmark/inputs/v1/flat-seasonal.json`](https://github.com/jer-k/effect-prophet/blob/main/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.35 ms | 20.7 ms | 4.8× faster |
| Predict | 298 µs | 3.13 ms | 11× faster |
| Save model to JSON | 21 µs | 437 µs | 21× faster |
| Load model from JSON | 188 µs | 2.26 ms | 12× faster |
| Load and predict in a new process | 157 ms | 1.44 s | 9.2× 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
  }
}
```
