---
url: >-
  https://jer-k.github.io/effect-prophet/benchmarks/logistic/logistic-explicit-floor-minmax.md
---

# Explicit floor with a regressor, minmax scaling

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

The same floor, regressor and weekly pattern under minmax scaling.

## Input

[`benchmark/inputs/v1/logistic-explicit-floor.json`](https://github.com/jer-k/effect-prophet/blob/main/benchmark/inputs/v1/logistic-explicit-floor.json): 96 history rows and 24 forecast rows.

## Output

Largest difference: **1.1e-11** (< 0.0001% of the input's range).

Every forecast row from both libraries.

| Date | Effect Prophet | Python Prophet | Difference |
| --- | ---: | ---: | ---: |
| 2020-04-06 | 65.8327 | 65.8327 | 1.1e-11 |
| 2020-04-07 | 66.2481 | 66.2481 | 1.1e-11 |
| 2020-04-08 | 67.2854 | 67.2854 | 1.1e-11 |
| 2020-04-09 | 67.5699 | 67.5699 | 1.1e-11 |
| 2020-04-10 | 67.9570 | 67.9570 | 1.1e-11 |
| 2020-04-11 | 68.0033 | 68.0033 | 1.0e-11 |
| 2020-04-12 | 67.8977 | 67.8977 | 1.0e-11 |
| 2020-04-13 | 67.9429 | 67.9429 | 9.9e-12 |
| 2020-04-14 | 68.6956 | 68.6956 | 9.4e-12 |
| 2020-04-15 | 68.9348 | 68.9348 | 9.5e-12 |
| 2020-04-16 | 69.5493 | 69.5493 | 9.3e-12 |
| 2020-04-17 | 69.8952 | 69.8952 | 8.9e-12 |
| 2020-04-18 | 69.9016 | 69.9016 | 8.7e-12 |
| 2020-04-19 | 69.7572 | 69.7572 | 8.5e-12 |
| 2020-04-20 | 70.1556 | 70.1556 | 7.9e-12 |
| 2020-04-21 | 70.0990 | 70.0990 | 8.1e-12 |
| 2020-04-22 | 70.6851 | 70.6851 | 7.9e-12 |
| 2020-04-23 | 71.2654 | 71.2654 | 7.7e-12 |
| 2020-04-24 | 71.5783 | 71.5783 | 7.4e-12 |
| 2020-04-25 | 71.5528 | 71.5528 | 7.2e-12 |
| 2020-04-26 | 71.7759 | 71.7759 | 6.6e-12 |
| 2020-04-27 | 71.3554 | 71.3554 | 6.8e-12 |
| 2020-04-28 | 71.6607 | 71.6607 | 6.7e-12 |
| 2020-04-29 | 72.2190 | 72.2190 | 6.5e-12 |

## Timing

Median of all measured repetitions.

| Step | Effect Prophet | Python Prophet | Effect Prophet is |
| --- | ---: | ---: | --- |
| Convert input rows | 29 µs | 542 µs | 19× faster |
| Fit | 18.2 ms | 28.2 ms | 1.6× faster |
| Predict | 373 µs | 3.66 ms | 9.8× faster |
| Fit and predict | 17.4 ms | 32.2 ms | 1.8× faster |
| Convert, fit and predict | 18.1 ms | 32.4 ms | 1.8× faster |
| First forecast in a new process | 191 ms | 1.46 s | 7.7× faster |
| Save model to JSON | 39 µs | 501 µs | 13× faster |
| Load model from JSON | 105 µs | 2.54 ms | 24× faster |
| Load and predict in a new process | 162 ms | 1.42 s | 8.8× faster |

## Settings

The case declaration both libraries ran.

```json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "logistic-map-v1"
  },
  "configuration": {
    "growth": "logistic",
    "scaling": "minmax",
    "seasonalityMode": "additive",
    "holidaysMode": "additive",
    "changepoints": {
      "mode": "explicit",
      "timestamps": [
        "2020-02-10T00:00:00.000Z"
      ]
    },
    "changepointPriorScale": 0.2,
    "seasonalities": [
      {
        "name": "weekly-custom",
        "periodDays": 7,
        "fourierOrder": 2,
        "priorScale": 10
      }
    ],
    "events": [],
    "regressors": [
      {
        "name": "promotion",
        "priorScale": 10,
        "standardization": "never",
        "mode": "multiplicative"
      }
    ]
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  }
}
```
