Skip to content

Samples with repeated timestamps ​

match ← All linear growth benchmarks

128 simulated futures from a model fitted on rows with repeated dates.

Input ​

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

Output ​

Largest difference: 5.4e-5 (0.0013% of the input's range).

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-01-2516.260516.26045.4e-5
2020-01-2616.495216.49525.2e-5
2020-01-2716.730016.73004.9e-5
2020-01-2816.964816.96484.7e-5
2020-01-2917.199617.19954.4e-5
2020-01-3017.434417.43434.2e-5
2020-01-3117.669117.66914.0e-5
2020-02-0117.903917.90393.7e-5

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Simulate uncertainty498 µs16.9 ms34× faster
Load and simulate in a new process154 ms1.44 s9.4× 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
  },
  "uncertainty": {
    "seed": 42,
    "samples": 128,
    "intervalWidth": 0.8,
    "output": "samples",
    "algorithm": "scalar-continuous-time",
    "evidence": "docs/validation/uncertainty.md",
    "samplerMemoryLimitBytes": 33554432
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.