시작하기무료로 시작하기

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"]
}
코드 편집 및 실행