Skip to content

Every row on the same date, same value ​

intentional difference ← All linear growth benchmarks

Three identical rows. Python Prophet reports success but forecasts NaN; we return a FittingError instead.

Input ​

benchmark/inputs/v1/training-zero-span-constant.json: 3 history rows and 2 forecast rows.

What happened ​

Effect Prophet

txt
FittingError: Linear MAP fitting requires a positive training time range [reason=degenerate-observations]

Python Prophet

txt
ValueError: Prophet prediction returned a non-finite value

Output ​

Neither library produced a usable forecast for this input.

Timing ​

This case isn't timed, because only matching cases are.

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
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.