시작하기무료로 시작하기

Fitting the model

Now that your model and parameters are ready, you'll initialize MLForecast and fit it to the time series data.

The model and params variables from the previous exercise are available, along with the ts DataFrame.

이 연습은 강의의 일부입니다

Designing Forecasting Pipelines for Production

강의 보기

연습 안내

  • Create an MLForecast instance named mlf.
  • Set the freq, lags, and date_features arguments using the respective keys from the params dictionary.
  • Fit the model to the ts DataFrame.

실습형 인터랙티브 연습

이 예제를 이 샘플 코드를 완성하여 풀어보세요.

# Create an MLForecast instance
mlf = ____(
    # Set the freq, lags, and date_features arguments
  	models=model,
    freq=params["____"],
    lags=params["____"],
    date_features=params["____"]
)

# Fit mlf to the time series data
mlf.fit(____)
코드 편집 및 실행