Skip to content

Weekly pattern, absmax 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 divided by their largest distance from the floor.

Input ​

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

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-04-0664.683064.68301.2e-11
2020-04-0765.141265.14121.2e-11
2020-04-0865.851165.85111.1e-11
2020-04-0966.550466.55041.1e-11
2020-04-1066.979666.97961.1e-11
2020-04-1167.069567.06951.0e-11
2020-04-1267.002967.00291.0e-11
2020-04-1367.080067.08001.0e-11
2020-04-1467.482967.48291.0e-11
2020-04-1568.138968.13899.5e-12
2020-04-1668.785968.78599.1e-12
2020-04-1769.164269.16428.8e-12
2020-04-1869.204969.20498.8e-12
2020-04-1969.090469.09048.8e-12
2020-04-2069.121369.12138.7e-12
2020-04-2169.479369.47938.3e-12
2020-04-2270.091970.09197.9e-12
2020-04-2370.696970.69697.5e-12
2020-04-2471.034671.03467.3e-12
2020-04-2571.035971.03597.2e-12
2020-04-2670.883570.88357.3e-12
2020-04-2770.877770.87777.2e-12
2020-04-2871.200271.20026.9e-12
2020-04-2971.778671.77866.5e-12

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows18 µs486 µs26× faster
Fit19.2 ms28.5 ms1.5× faster
Predict229 µs3.24 ms14× faster
Fit and predict18.9 ms32.6 ms1.7× faster
Convert, fit and predict18.6 ms33.4 ms1.8× faster
First forecast in a new process180 ms1.49 s8.3× faster
Save model to JSON29 µs421 µs14× faster
Load model from JSON89 µs2.27 ms25× faster
Load and predict in a new process159 ms1.46 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": "absmax",
    "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.