
Fitted, Cross-Validated Predictive Models
FittedCV.RdFittedCV is a fitted, cross-validated predictive model object that is
returned by CV$fit() and contains relevant model components,
cross-validation metrics, validation set predicted values, etc.
Public fields
foldsA list of length
$nfoldswhere each element contains the indices of the observations contained in that fold.modelPredictive model fitted on the full data set.
mean_metricsNumeric list; Cross-validation performance metrics averaged across folds.
metricsNumeric list; Cross-validation performance metrics on each fold.
nfoldsAn integer specifying the number of cross-validation folds.
predictionsA list containing the predicted hold-out values on every fold.
Methods
Method new()
Create a new FittedCV object.
Usage
FittedCV$new(folds, model, metrics, nfolds, predictions)Arguments
foldsA list of length
$nfoldswhere each element contains the indices of the observations contained in that fold.modelPredictive model fitted on the full data set.
metricsNumeric list; Cross-validation performance metrics on each fold.
nfoldsAn integer specifying the number of cross-validation folds.
predictionsA list containing the predicted hold-out values on every fold.