Skip to content

Sorted rows, hand-picked changepoint ​

match ← All linear growth benchmarks

96 daily rows with a slope change. Effect and Python fit the same rows; prediction covers 8 days.

Input ​

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

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-04-0632.804032.80403.3e-12
2020-04-0733.034133.03413.2e-12
2020-04-0833.264233.26423.2e-12
2020-04-0933.494333.49433.2e-12
2020-04-1033.724333.72433.1e-12
2020-04-1133.954433.95443.1e-12
2020-04-1234.184534.18453.0e-12
2020-04-1334.414534.41453.0e-12

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit4.01 ms20.9 ms5.2× faster
Predict169 µs2.69 ms16× faster
Save model to JSON22 µs403 µs18× faster
Load model from JSON135 µs2.06 ms15× faster
Load and predict in a new process154 ms1.48 s9.6× 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.