Skip to content

Repeated timestamps with features ​

match ← All linear growth benchmarks

Repeated dates whose regressor and condition values differ from row to row.

Input ​

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

Output ​

Largest difference: 0.00093 (0.017% of the input's range).

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2020-01-2517.080617.08080.00019
2020-01-2616.498016.49810.00014
2020-01-2716.055916.05620.00033
2020-01-2816.422816.42310.00031
2020-01-2917.714417.71480.00038
2020-01-3017.441517.44210.00059
2020-01-3118.357218.35790.00069
2020-02-0118.219118.22000.00093

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Fit32.6 ms112 ms3.4× faster
Predict239 µs3.49 ms15× faster
Save model to JSON24 µs461 µs19× faster
Load model from JSON243 µs2.75 ms11× faster
Load and predict in a new process158 ms1.51 s9.5× 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": [
      {
        "name": "weekly-active",
        "periodDays": 7,
        "fourierOrder": 1,
        "priorScale": 10,
        "conditionName": "active"
      }
    ],
    "events": [],
    "regressors": [
      {
        "name": "promotion",
        "priorScale": 10,
        "standardization": "never"
      }
    ]
  },
  "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.