Skip to content

Weekly pattern, minmax scaling ​

match ← All flat growth benchmarks

The same weekly data with minmax scaling.

Input ​

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.

DateEffect ProphetPython ProphetDifference
2020-04-0633.635133.63516.5e-13
2020-04-0733.909733.90972.8e-13
2020-04-0835.003935.00391.0e-12
2020-04-0936.095936.09592.3e-12
2020-04-1036.366536.36652.6e-12
2020-04-1135.608435.60841.7e-12
2020-04-1234.390934.39092.3e-13
2020-04-1333.635133.63516.4e-13
2020-04-1433.909733.90972.8e-13
2020-04-1535.003935.00391.0e-12
2020-04-1636.095936.09592.3e-12
2020-04-1736.366536.36652.6e-12
2020-04-1835.608435.60841.7e-12
2020-04-1934.390934.39092.2e-13
2020-04-2033.635133.63516.5e-13
2020-04-2133.909733.90972.8e-13
2020-04-2235.003935.00391.0e-12
2020-04-2336.095936.09592.3e-12
2020-04-2436.366536.36652.6e-12
2020-04-2535.608435.60841.7e-12
2020-04-2634.390934.39092.3e-13
2020-04-2733.635133.63516.4e-13
2020-04-2833.909733.90972.8e-13
2020-04-2935.003935.00391.0e-12

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit4.23 ms20.4 ms4.8× faster
Predict217 µs3.15 ms14× faster
Save model to JSON21 µs447 µs21× faster
Load model from JSON162 µs2.13 ms13× faster
Load and predict in a new process157 ms1.51 s9.6× 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
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.