शुरू करेंमुफ़्त में शुरू करें

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.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Designing Forecasting Pipelines for Production

पाठ्यक्रम देखें

अभ्यास निर्देश

  • 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").

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# Import LGBMRegressor from lightgbm
from ____ import ____

# Instantiate the model
model = ____(n_estimators=____, learning_rate=____)

# Set the model parameters
params = {
  "freq": "____",
  "lags": list(range(____, ____)),
  "date_features": ["month", "day", "____", "____", "hour"]
}
कोड संपादित करें और चलाएँ