Skip to content

Regressors that track other effects ​

match ← All flat growth benchmarks

Two years of daily rows. Temperature follows the yearly pattern closely and a constant regressor duplicates the level. The forecast half-year has an unusually warm winter, so the split between temperature and the yearly pattern shows.

Input ​

benchmark/inputs/v4/flat-correlated-regressors.json: 730 history rows and 180 forecast rows.

Output ​

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

Every forecast row from both libraries.

DateEffect ProphetPython ProphetDifference
2021-12-3149.031049.03102.1e-11
2022-01-0147.904847.90482.2e-11
2022-01-0247.101147.10112.3e-11
2022-01-0347.233147.23312.3e-11
2022-01-0448.173148.17312.1e-11
2022-01-0549.251049.25102.0e-11
2022-01-0649.701849.70182.0e-11
2022-01-0749.168349.16832.1e-11
2022-01-0848.060848.06082.2e-11
2022-01-0947.278847.27882.3e-11
2022-01-1047.425547.42552.3e-11
2022-01-1148.368948.36892.1e-11
2022-01-1249.442949.44292.0e-11
2022-01-1349.892149.89212.0e-11
2022-01-1449.367349.36732.1e-11
2022-01-1548.278948.27892.2e-11
2022-01-1647.518647.51862.3e-11
2022-01-1747.680147.68012.2e-11
2022-01-1848.626648.62662.1e-11
2022-01-1949.696549.69652.0e-11
2022-01-2050.144150.14412.0e-11
2022-01-2149.627949.62792.1e-11
2022-01-2248.558248.55822.2e-11
2022-01-2347.819147.81912.3e-11
2022-01-2447.994447.99442.3e-11
2022-01-2548.943248.94322.1e-11
2022-01-2650.008150.00812.0e-11
2022-01-2750.453250.45322.0e-11
2022-01-2849.944749.94472.1e-11
2022-01-2948.892948.89292.2e-11
2022-01-3048.173748.17372.3e-11
2022-01-3148.361448.36142.3e-11
2022-02-0149.311149.31112.2e-11
2022-02-0250.369750.36972.1e-11
2022-02-0350.811250.81122.1e-11
2022-02-0450.309450.30942.2e-11
2022-02-0549.274349.27432.3e-11
2022-02-0648.573848.57382.4e-11
2022-02-0748.772748.77272.3e-11
2022-02-0849.721849.72182.2e-11
2022-02-0950.773150.77312.1e-11
2022-02-1051.210251.21022.1e-11
2022-02-1150.714650.71462.2e-11
2022-02-1249.695549.69552.3e-11
2022-02-1349.013049.01302.4e-11
2022-02-1449.222149.22212.4e-11
2022-02-1550.169950.16992.3e-11
2022-02-1651.213251.21322.1e-11
2022-02-1751.645651.64562.1e-11
2022-02-1851.155751.15572.2e-11
2022-02-1950.152350.15232.4e-11
2022-02-2049.487149.48712.4e-11
2022-02-2149.705649.70562.4e-11
2022-02-2250.651450.65142.3e-11
2022-02-2351.686251.68622.2e-11
2022-02-2452.113252.11322.1e-11
2022-02-2551.628651.62862.2e-11
2022-02-2650.640350.64032.4e-11
2022-02-2749.991549.99152.4e-11
2022-02-2850.218550.21852.4e-11
2022-03-0151.161151.16112.3e-11
2022-03-0252.186252.18622.2e-11
2022-03-0352.607152.60712.2e-11
2022-03-0452.126852.12682.3e-11
2022-03-0551.152451.15242.4e-11
2022-03-0650.518850.51882.5e-11
2022-03-0750.752650.75262.5e-11
2022-03-0851.690651.69062.3e-11
2022-03-0952.704752.70472.2e-11
2022-03-1053.118153.11812.2e-11
2022-03-1152.641252.64122.3e-11
2022-03-1251.679451.67942.5e-11
2022-03-1351.059651.05962.5e-11
2022-03-1451.298751.29872.5e-11
2022-03-1552.230452.23042.4e-11
2022-03-1653.232253.23222.3e-11
2022-03-1753.637253.63722.3e-11
2022-03-1853.162553.16252.4e-11
2022-03-1952.212452.21242.5e-11
2022-03-2051.605151.60512.6e-11
2022-03-2151.848351.84832.5e-11
2022-03-2252.772752.77272.4e-11
2022-03-2353.761253.76122.3e-11
2022-03-2454.156954.15692.3e-11
2022-03-2553.683753.68372.4e-11
2022-03-2652.744552.74452.5e-11
2022-03-2752.148852.14882.6e-11
2022-03-2852.395052.39502.6e-11
2022-03-2953.310953.31092.4e-11
2022-03-3054.285254.28522.3e-11
2022-03-3154.670954.67092.3e-11
2022-04-0154.198654.19862.4e-11
2022-04-0253.269653.26962.5e-11
2022-04-0352.684352.68432.6e-11
2022-04-0452.932452.93242.6e-11
2022-04-0553.838653.83862.5e-11
2022-04-0654.797754.79772.4e-11
2022-04-0755.172555.17252.3e-11
2022-04-0854.700254.70022.4e-11
2022-04-0953.780153.78012.6e-11
2022-04-1053.204253.20422.6e-11
2022-04-1153.452653.45262.6e-11
2022-04-1254.347854.34782.5e-11
2022-04-1355.290355.29032.4e-11
2022-04-1455.653255.65322.4e-11
2022-04-1555.179855.17982.5e-11
2022-04-1654.267654.26762.6e-11
2022-04-1753.699653.69962.7e-11
2022-04-1853.946953.94692.6e-11
2022-04-1954.829754.82972.5e-11
2022-04-2055.754655.75462.4e-11
2022-04-2156.104556.10452.4e-11
2022-04-2255.629255.62922.5e-11
2022-04-2354.723954.72392.6e-11
2022-04-2454.162754.16272.7e-11
2022-04-2554.407954.40792.7e-11
2022-04-2655.277155.27712.6e-11
2022-04-2756.183556.18352.4e-11
2022-04-2856.519856.51982.4e-11
2022-04-2956.042056.04202.5e-11
2022-04-3055.143055.14302.6e-11
2022-05-0154.587854.58782.7e-11
2022-05-0254.829854.82982.7e-11
2022-05-0355.684855.68482.6e-11
2022-05-0456.571956.57192.5e-11
2022-05-0556.894156.89412.4e-11
2022-05-0656.413356.41332.5e-11
2022-05-0755.520155.52012.7e-11
2022-05-0854.970154.97012.7e-11
2022-05-0955.208155.20812.7e-11
2022-05-1056.047756.04772.6e-11
2022-05-1156.915056.91502.5e-11
2022-05-1257.222557.22252.4e-11
2022-05-1356.738256.73822.5e-11
2022-05-1455.849955.84992.7e-11
2022-05-1555.304355.30432.7e-11
2022-05-1655.537155.53712.7e-11
2022-05-1756.360556.36052.6e-11
2022-05-1857.207057.20702.5e-11
2022-05-1957.499157.49912.5e-11
2022-05-2057.010757.01072.6e-11
2022-05-2156.126756.12672.7e-11
2022-05-2255.584555.58452.8e-11
2022-05-2355.811255.81122.7e-11
2022-05-2456.617556.61752.6e-11
2022-05-2557.442457.44242.5e-11
2022-05-2657.718857.71882.5e-11
2022-05-2757.225857.22582.6e-11
2022-05-2856.345656.34562.7e-11
2022-05-2955.806155.80612.8e-11
2022-05-3056.026156.02612.7e-11
2022-05-3156.814656.81462.6e-11
2022-06-0157.617857.61782.5e-11
2022-06-0257.878257.87822.5e-11
2022-06-0357.380657.38062.6e-11
2022-06-0456.503956.50392.7e-11
2022-06-0555.966955.96692.8e-11
2022-06-0656.179656.17962.7e-11
2022-06-0756.950156.95012.6e-11
2022-06-0857.731357.73132.5e-11
2022-06-0957.975857.97582.5e-11
2022-06-1057.473657.47362.6e-11
2022-06-1156.600456.60042.7e-11
2022-06-1256.065656.06562.8e-11
2022-06-1356.270856.27082.7e-11
2022-06-1457.022957.02292.6e-11
2022-06-1557.782057.78202.5e-11
2022-06-1658.010658.01062.5e-11
2022-06-1757.503957.50392.6e-11
2022-06-1856.634156.63412.7e-11
2022-06-1956.101156.10112.8e-11
2022-06-2056.298356.29832.7e-11
2022-06-2157.031757.03172.6e-11
2022-06-2257.768557.76852.5e-11
2022-06-2357.981257.98122.5e-11
2022-06-2457.469957.46992.6e-11
2022-06-2556.603556.60352.7e-11
2022-06-2656.072156.07212.7e-11
2022-06-2756.261056.26102.7e-11
2022-06-2856.975356.97532.6e-11

Timing ​

Median of all measured repetitions.

StepEffect ProphetPython ProphetEffect Prophet is
Convert input rows101 µs932 µs9.2× faster
Fit5.10 ms25.4 ms5.0× faster
Predict924 µs4.55 ms4.9× faster
Fit and predict5.42 ms29.6 ms5.5× faster
Convert, fit and predict6.99 ms30.4 ms4.4× faster
First forecast in a new process183 ms1.45 s7.9× faster
Save model to JSON26 µs1.15 ms44× faster
Load model from JSON202 µs3.54 ms17× faster
Load and predict in a new process196 ms1.40 s7.1× faster

Settings ​

The case declaration both libraries ran.

json
{
  "kind": "map",
  "comparison": {
    "kind": "equivalent-objective",
    "evidenceId": "flat-map-additive-v1"
  },
  "configuration": {
    "growth": "flat",
    "scaling": "absmax",
    "seasonalityMode": "additive",
    "holidaysMode": "additive",
    "changepoints": {
      "mode": "auto",
      "count": 25,
      "range": 0.8
    },
    "changepointPriorScale": 0.05,
    "seasonalities": [
      {
        "name": "yearly-custom",
        "periodDays": 365.25,
        "fourierOrder": 10,
        "priorScale": 10
      },
      {
        "name": "weekly-custom",
        "periodDays": 7,
        "fourierOrder": 2,
        "priorScale": 10
      }
    ],
    "events": [],
    "regressors": [
      {
        "name": "temperature",
        "priorScale": 10,
        "standardization": "auto"
      },
      {
        "name": "baseline",
        "priorScale": 10,
        "standardization": "never"
      }
    ]
  },
  "pythonOptimizer": {
    "algorithm": "Auto",
    "maxIterations": 10000,
    "newtonFallback": true,
    "sigFigs": 12
  }
}

Inspired by Prophet from Meta. Not affiliated with Meta.