Pārlūkot izejas kodu

Documentation: cross_validation with extra regressors requires multiple values

Ben Letham 7 gadi atpakaļ
vecāks
revīzija
13976d07b7
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      notebooks/diagnostics.ipynb

+ 3 - 1
notebooks/diagnostics.ipynb

@@ -475,7 +475,9 @@
    "cell_type": "markdown",
    "metadata": {},
    "source": [
-    "The size of the rolling window in the figure can be changed with the optional argument `rolling_window`, which specifies the proportion of forecasts to use in each rolling window. The default is 0.1, corresponding to 10% of rows from `df_cv` included in each window; increasing this will lead to a smoother average curve in the figure."
+    "The size of the rolling window in the figure can be changed with the optional argument `rolling_window`, which specifies the proportion of forecasts to use in each rolling window. The default is 0.1, corresponding to 10% of rows from `df_cv` included in each window; increasing this will lead to a smoother average curve in the figure.\n",
+    "\n",
+    "When using cross validation on a model with extra regressors, the cross validation will exit with an error if the extra regressor is constant in the simulated history. The `initial` period should be long enough for the extra regressor to take on multiple values. Similarly, the initial period should be long enough to capture any seasonalities that are included in the model: at least a year for yearly seasonality, at least a week for weekly seasonality, etc."
    ]
   }
  ],