Loading topic
DataFrame, Series and DatetimeIndex. You should also know the train/test split and how regression models overfit. No forecasting background is needed.2 min readDataFrame, Series, DatetimeIndex), basic regression with scikit-learn's fit/predict, and the idea of train/test splits. Lag features, rolling windows and models come in later chapters. Here you build the table itself and see what the framing assumes.2 min readshift and a DatetimeIndex, and that you know MAE from the previous chapter. A baseline is a forecast so simple that it needs no training. Any model you build has to beat it. If it doesn't, the extra complexity gives you nothing.2 min readrolling, shift, and a DatetimeIndex with a regular frequency. It also assumes you have read the lag features chapter.2 min readDatetimeIndex, you know how lag features work from the previous chapters, and you know that tree models split on feature thresholds.2 min readDatetimeIndex, know scikit-learn's fit/predict interface, and understand decision trees at a basic level. It also assumes you have built the lag, rolling and calendar features from the earlier chapters.2 min readHistGradientBoostingRegressor, and split data chronologically. It covers one failure mode of tree models on trending series and two fixes.2 min readDatetimeIndex.2 min readHistGradientBoostingRegressor, and validate chronologically, as covered in earlier chapters. A model trained on lag features predicts one step ahead. To forecast a horizon of several steps, you need a strategy. The two common ones 2 min readHistGradientBoostingRegressor, and run TimeSeriesSplit as in earlier chapters. The code uses the data table and feature_cols list from those chapters.2 min readmodel, the chronological test split and the feature_cols list from the earlier chapters. It also assumes you know the basics of scikit-learn's fit/predict interface.2 min readgroupby.2 min readtrain, test and feature_cols objects from the earlier chapters, and that you know how the gradient boosting regressor is fitted. A point forecast gives one number. A prediction interval gives a range that the actual value should fall inside with a stated proba2 min read