Slackbot
01/16/2024, 11:10 AMCristian (Nixtla)
01/17/2024, 7:39 PMAuto
models are already doing cross-validation under the hood to select optimal hyperparameters. You simply need to instantiate the model and use either the fit/predict
or cross_validation
methods. You can specify the size of the validation set with val_size
. During the validation step, the model is evaluated on the entire validation set using rolling windows without refit. See image below. You cant access the loss per window directly, only the average in the validation_trajectories
object with nf.models[0].train_trajectories
.Cristian (Nixtla)
01/17/2024, 7:41 PMrefit_with_val
.Cristian (Nixtla)
01/17/2024, 7:44 PMcross_validation
method is to recover the rolling predictions for a third test set split, so you dont need to call the predict
method multiple times.lobbie lobbie
01/17/2024, 10:08 PM