Skip to content

Repeated timestamps, hand-picked changepoint ​

match ← All linear growth benchmarks

Some dates appear several times with different values. Every row counts as its own measurement.

Input ​

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

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-01-2516.251416.25141.4e-11
2020-01-2616.483216.48321.4e-11
2020-01-2716.714916.71491.5e-11
2020-01-2816.946716.94671.5e-11
2020-01-2917.178417.17841.6e-11
2020-01-3017.410217.41021.6e-11
2020-01-3117.642017.64201.6e-11
2020-02-0117.873717.87371.7e-11

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit3.96 ms19.8 ms5.0× faster
Predict178 µs2.61 ms15× faster
Save model to JSON18 µs405 µs22× faster
Load model from JSON137 µs2.05 ms15× faster
Load and predict in a new process155 ms1.55 s10× 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": "explicit",
      "timestamps": [
        "2020-01-17T00:00:00.000Z"
      ]
    },
    "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.