1. Learn
  2. /
  3. Courses
  4. /
  5. Designing Forecasting Pipelines for Production

Connected

Exercise

Defining the forecasting pipeline

Now you'll define the forecasting model and parameters for the MLForecast pipeline. This step prepares the model configuration that will be used for time series forecasting in the pipeline.

Instructions

100 XP
  • Import LGBMRegressor from lightgbm.
  • Instantiate a LGBMRegressor model with 100 estimators and a learning rate of 0.05.
  • Create a dictionary named params that includes the frequency ("h"), lags (1-24), and date features ("month", "day", "dayofweek", "week", and "hour").