crossval
Cross-validated decision tree
Description
creates a partitioned model with additional options specified by a single name-value
argument.cvmodel
= crossval(model
,Name=Value
)
Examples
Input Arguments
Output Arguments
Tips
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
name-value arguments in fitrtree
: CrossVal
,
KFold
, Holdout
, Leaveout
,
or CVPartition
.
Extended Capabilities
Version History
Introduced in R2011a