Skip to content

Samples, weekly pattern ​

match ← All logistic growth benchmarks

512 raw simulated values per date over the history and forecast.

Input ​

benchmark/inputs/v1/logistic-implicit-floor.json: 96 history rows and 24 forecast rows.

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-04-0664.897764.89771.9e-11
2020-04-0765.345265.34521.9e-11
2020-04-0865.969565.96951.9e-11
2020-04-0966.658766.65871.9e-11
2020-04-1067.145267.14521.8e-11
2020-04-1167.245167.24511.8e-11
2020-04-1267.187267.18721.7e-11
2020-04-1367.318767.31871.7e-11
2020-04-1467.707867.70781.6e-11
2020-04-1568.275468.27541.6e-11
2020-04-1668.909568.90951.6e-11
2020-04-1769.342669.34261.6e-11
2020-04-1869.390769.39071.5e-11
2020-04-1969.282669.28261.5e-11
2020-04-2069.365569.36551.4e-11
2020-04-2169.707569.70751.4e-11
2020-04-2270.229670.22961.3e-11
2020-04-2370.819770.81971.3e-11
2020-04-2471.210371.21031.3e-11
2020-04-2571.217371.21731.3e-11
2020-04-2671.069671.06961.2e-11
2020-04-2771.114371.11431.1e-11
2020-04-2871.419571.41951.1e-11
2020-04-2971.906071.90601.1e-11

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows22 µs501 µs23× faster
Save model to JSON19 µs456 µs24× faster
Load model from JSON136 µs2.30 ms17× faster
Simulate uncertainty1.22 ms80.7 ms66× faster
First simulation in a new process191 ms1.54 s8.1× faster
Load and simulate in a new process159 ms1.53 s9.6× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "logistic-map-v1"
  },
  "configuration": {
    "growth": "logistic",
    "scaling": "minmax",
    "seasonalityMode": "additive",
    "holidaysMode": "additive",
    "changepoints": {
      "mode": "explicit",
      "timestamps": [
        "2020-02-10T00:00:00.000Z"
      ]
    },
    "changepointPriorScale": 0.2,
    "seasonalities": [
      {
        "name": "weekly-custom",
        "periodDays": 7,
        "fourierOrder": 2,
        "priorScale": 10
      }
    ],
    "events": [],
    "regressors": []
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  },
  "uncertainty": {
    "seed": 19,
    "samples": 512,
    "intervalWidth": 0.8,
    "output": "samples",
    "algorithm": "scalar-continuous-time",
    "evidence": "docs/validation/uncertainty.md#evidence-classes",
    "samplerMemoryLimitBytes": 67108864
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.