crossval
Cross-validated decision tree
Description
creates a partitioned model with additional options specified by one or more
cvmodel
= crossval(model
,Name,Value
)Name,Value
pair arguments.
Examples
Input Arguments
Output Arguments
Tips
Assess the predictive performance of model
on cross-validated data
using the “kfold” methods and properties of cvmodel
, such
as kfoldLoss
.
Alternatives
You can create a cross-validation tree directly from the data, instead of creating a
decision tree followed by a cross-validation tree. To do so, include one of these five options
in fitctree
: 'CrossVal'
, 'KFold'
,
'Holdout'
, 'Leaveout'
, or
'CVPartition'
.
Extended Capabilities
Version History
Introduced in R2011a