시작하기무료로 시작하기

Training models with backtesting

Building on the previous exercises, you'll now evaluate your models using backtesting. You'll define 4 partitions, each with a 12-hour shift and a 72-hour testing window, and execute the process with the cross_validation() method.

The ts DataFrame and initialized MLForecast object (mlf) are preloaded, so you can focus on setting up and running the backtesting. Let's get started!

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

Designing Forecasting Pipelines for Production

강의 보기

실습형 인터랙티브 연습

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

# Import a library for interval calibration
from mlforecast.utils import ____

# Set parameters
h = ____  
step_size = ____  
partitions = 4  
n_windows = 3  
method = "conformal_distribution"  
levels = [95] 

# Initialize PredictionIntervals
pi = ____(h=____, n_windows=____, method=____)
코드 편집 및 실행