Skip to content

Shuffled rows, automatic changepoints ​

match ← All linear growth benchmarks

Scrambled order with automatic changepoints, whose positions depend on the sorted rows.

Input ​

benchmark/inputs/v1/training-unsorted.json: 96 history rows and 8 forecast rows.

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-04-0632.811932.81198.9e-10
2020-04-0733.042433.04249.9e-10
2020-04-0833.273033.27301.1e-9
2020-04-0933.503633.50361.2e-9
2020-04-1033.734133.73411.3e-9
2020-04-1133.964733.96471.4e-9
2020-04-1234.195334.19531.5e-9
2020-04-1334.425834.42581.6e-9

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit31.5 ms107 ms3.4× faster
Predict151 µs2.69 ms18× faster
Save model to JSON19 µs404 µs21× faster
Load model from JSON169 µs2.06 ms12× faster
Load and predict in a new process159 ms1.42 s8.9× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "linear-output-first-v4"
  },
  "configuration": {
    "growth": "linear",
    "scaling": "absmax",
    "seasonalityMode": "additive",
    "holidaysMode": "additive",
    "changepoints": {
      "mode": "auto",
      "count": 25,
      "range": 0.8
    },
    "changepointPriorScale": 0.05,
    "seasonalities": [],
    "events": [],
    "regressors": []
  },
  "effectOptimizer": {
    "algorithm": "auto",
    "maxIterations": 10000,
    "fallback": "newton",
    "lbfgs": {
      "historySize": 5,
      "initAlpha": 0.001,
      "tolObj": 1e-12,
      "tolRelObj": 10000,
      "tolGrad": 1e-8,
      "tolRelGrad": 10000000,
      "tolParam": 1e-8
    }
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.