Skip to content

Weekly pattern, minmax scaling ​

match ← All logistic growth benchmarks

96 daily rows rising toward a ceiling of about 60, with a custom weekly pattern and one changepoint. Values are scaled between the lowest floor and the highest ceiling.

Input ​

benchmark/inputs/v1/logistic-implicit-floor.json: 96 history rows and 24 forecast rows.

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-04-0664.897764.89771.9e-11
2020-04-0765.345265.34521.9e-11
2020-04-0865.969565.96951.9e-11
2020-04-0966.658766.65871.9e-11
2020-04-1067.145267.14521.8e-11
2020-04-1167.245167.24511.8e-11
2020-04-1267.187267.18721.7e-11
2020-04-1367.318767.31871.7e-11
2020-04-1467.707867.70781.6e-11
2020-04-1568.275468.27541.6e-11
2020-04-1668.909568.90951.6e-11
2020-04-1769.342669.34261.6e-11
2020-04-1869.390769.39071.5e-11
2020-04-1969.282669.28261.5e-11
2020-04-2069.365569.36551.4e-11
2020-04-2169.707569.70751.4e-11
2020-04-2270.229670.22961.3e-11
2020-04-2370.819770.81971.3e-11
2020-04-2471.210371.21031.3e-11
2020-04-2571.217371.21731.3e-11
2020-04-2671.069671.06961.2e-11
2020-04-2771.114371.11431.1e-11
2020-04-2871.419571.41951.1e-11
2020-04-2971.906071.90601.1e-11

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows18 µs486 µs27× faster
Fit21.4 ms32.0 ms1.5× faster
Predict235 µs3.17 ms13× faster
Fit and predict20.5 ms34.5 ms1.7× faster
Convert, fit and predict20.5 ms37.8 ms1.8× faster
First forecast in a new process185 ms1.45 s7.8× faster
Save model to JSON33 µs435 µs13× faster
Load model from JSON82 µs2.23 ms27× faster
Load and predict in a new process154 ms1.41 s9.2× 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": []
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.