kfoldPredict
Predict responses for observations in cross-validated linear regression model
Description
returns cross-validated predicted responses by the cross-validated linear regression
model YHat = kfoldPredict(CVMdl)CVMdl. For every fold, kfoldPredict
predicts the responses for validation-fold observations using a model trained on
training-fold observations.
YHat contains predicted responses for each
regularization strength in the linear regression models that compose CVMdl.
uses the YHat = kfoldPredict(CVMdl,PredictionForMissingValue=prediction)prediction value as the predicted response for
observations with missing values in the predictor data. By default,
kfoldPredict uses the median of the observed response
values in the training-fold data. (since R2023b)
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2016aSee Also
RegressionPartitionedLinear | predict | RegressionLinear | fitrlinear