Skip to content

Defaults, ranges with a weekly pattern ​

match ← All flat growth benchmarks

80% ranges from 1,000 simulated paths on every past and future date. A flat trend never changes, so the ranges come from noise alone.

Input ​

benchmark/inputs/v1/flat-seasonal.json: 96 history rows and 24 forecast rows.

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-01-0135.002535.00251.0e-12
2020-01-0236.096836.09688.4e-11
2020-01-0336.366336.36631.1e-10
2020-01-0435.607935.60794.8e-11
2020-01-0534.392134.39214.7e-11
2020-01-0633.633433.63341.0e-10
2020-01-0733.911533.91158.2e-11
2020-01-0835.002535.00251.0e-12
2020-01-0936.096836.09688.4e-11
2020-01-1036.366336.36631.1e-10
2020-01-1135.607935.60794.8e-11
2020-01-1234.392134.39214.7e-11
2020-01-1333.633433.63341.0e-10
2020-01-1433.911533.91158.2e-11
2020-01-1535.002535.00251.0e-12
2020-01-1636.096836.09688.4e-11
2020-01-1736.366336.36631.1e-10
2020-01-1835.607935.60794.8e-11
2020-01-1934.392134.39214.7e-11
2020-01-2033.633433.63341.0e-10
2020-01-2133.911533.91158.2e-11
2020-01-2235.002535.00251.0e-12
2020-01-2336.096836.09688.4e-11
2020-01-2436.366336.36631.1e-10
2020-01-2535.607935.60794.8e-11
2020-01-2634.392134.39214.7e-11
2020-01-2733.633433.63341.0e-10
2020-01-2833.911533.91158.2e-11
2020-01-2935.002535.00251.0e-12
2020-01-3036.096836.09688.4e-11
2020-01-3136.366336.36631.1e-10
2020-02-0135.607935.60794.8e-11
2020-02-0234.392134.39214.7e-11
2020-02-0333.633433.63341.0e-10
2020-02-0433.911533.91158.2e-11
2020-02-0535.002535.00251.0e-12
2020-02-0636.096836.09688.4e-11
2020-02-0736.366336.36631.1e-10
2020-02-0835.607935.60794.8e-11
2020-02-0934.392134.39214.7e-11
2020-02-1033.633433.63341.0e-10
2020-02-1133.911533.91158.2e-11
2020-02-1235.002535.00251.0e-12
2020-02-1336.096836.09688.4e-11
2020-02-1436.366336.36631.1e-10
2020-02-1535.607935.60794.8e-11
2020-02-1634.392134.39214.7e-11
2020-02-1733.633433.63341.0e-10
2020-02-1833.911533.91158.2e-11
2020-02-1935.002535.00251.0e-12
2020-02-2036.096836.09688.4e-11
2020-02-2136.366336.36631.1e-10
2020-02-2235.607935.60794.8e-11
2020-02-2334.392134.39214.7e-11
2020-02-2433.633433.63341.0e-10
2020-02-2533.911533.91158.2e-11
2020-02-2635.002535.00251.0e-12
2020-02-2736.096836.09688.4e-11
2020-02-2836.366336.36631.1e-10
2020-02-2935.607935.60794.8e-11
2020-03-0134.392134.39214.7e-11
2020-03-0233.633433.63341.0e-10
2020-03-0333.911533.91158.2e-11
2020-03-0435.002535.00251.0e-12
2020-03-0536.096836.09688.4e-11
2020-03-0636.366336.36631.1e-10
2020-03-0735.607935.60794.8e-11
2020-03-0834.392134.39214.7e-11
2020-03-0933.633433.63341.0e-10
2020-03-1033.911533.91158.2e-11
2020-03-1135.002535.00251.0e-12
2020-03-1236.096836.09688.4e-11
2020-03-1336.366336.36631.1e-10
2020-03-1435.607935.60794.8e-11
2020-03-1534.392134.39214.7e-11
2020-03-1633.633433.63341.0e-10
2020-03-1733.911533.91158.2e-11
2020-03-1835.002535.00251.0e-12
2020-03-1936.096836.09688.4e-11
2020-03-2036.366336.36631.1e-10
2020-03-2135.607935.60794.8e-11
2020-03-2234.392134.39214.7e-11
2020-03-2333.633433.63341.0e-10
2020-03-2433.911533.91158.2e-11
2020-03-2535.002535.00251.0e-12
2020-03-2636.096836.09688.4e-11
2020-03-2736.366336.36631.1e-10
2020-03-2835.607935.60794.8e-11
2020-03-2934.392134.39214.7e-11
2020-03-3033.633433.63341.0e-10
2020-03-3133.911533.91158.2e-11
2020-04-0135.002535.00251.0e-12
2020-04-0236.096836.09688.4e-11
2020-04-0336.366336.36631.1e-10
2020-04-0435.607935.60794.8e-11
2020-04-0534.392134.39214.7e-11
2020-04-0633.633433.63341.0e-10
2020-04-0733.911533.91158.2e-11
2020-04-0835.002535.00251.0e-12
2020-04-0936.096836.09688.4e-11
2020-04-1036.366336.36631.1e-10
2020-04-1135.607935.60794.8e-11
2020-04-1234.392134.39214.7e-11
2020-04-1333.633433.63341.0e-10
2020-04-1433.911533.91158.2e-11
2020-04-1535.002535.00251.0e-12
2020-04-1636.096836.09688.4e-11
2020-04-1736.366336.36631.1e-10
2020-04-1835.607935.60794.8e-11
2020-04-1934.392134.39214.7e-11
2020-04-2033.633433.63341.0e-10
2020-04-2133.911533.91158.2e-11
2020-04-2235.002535.00251.0e-12
2020-04-2336.096836.09688.4e-11
2020-04-2436.366336.36631.1e-10
2020-04-2535.607935.60794.8e-11
2020-04-2634.392134.39214.7e-11
2020-04-2733.633433.63341.0e-10
2020-04-2833.911533.91158.2e-11
2020-04-2935.002535.00251.0e-12

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows28 µs513 µs18× faster
Save model to JSON22 µs455 µs21× faster
Load model from JSON171 µs2.13 ms12× faster
Simulate uncertainty4.48 ms125 ms28× faster
First simulation in a new process297 ms1.95 s6.6× faster
Load and simulate in a new process165 ms1.57 s9.5× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "flat-growth-reduced-v1"
  },
  "fitRequest": "growth-only",
  "configuration": {
    "growth": "flat",
    "scaling": "absmax",
    "seasonalityMode": "additive",
    "holidaysMode": "additive",
    "changepoints": {
      "mode": "auto",
      "count": 25,
      "range": 0.8
    },
    "changepointPriorScale": 0.05,
    "seasonalities": [
      {
        "name": "weekly",
        "periodDays": 7,
        "fourierOrder": 3,
        "priorScale": 10
      }
    ],
    "events": [],
    "regressors": []
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true
  },
  "uncertainty": {
    "seed": 19,
    "samples": 1000,
    "intervalWidth": 0.8,
    "output": "intervals",
    "algorithm": "scalar-continuous-time",
    "evidence": "docs/validation/uncertainty.md#evidence-classes",
    "samplerMemoryLimitBytes": 67108864
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.