Crossval and regressiontree.fit - how does crossval works?
Mostrar comentarios más antiguos
Hey!:) I am using Regressiontree.fit in order to do build a decision tree for my data. If I want it to do cross validation automatic I have to include (‘crossval’,’on’), right? I have done it, but I am not quite sure what matlab has done exactly? What does KFold 10 means? How does this automatic crossvalidation works?
Thanks a lot for your help!
Please find my code below: >> rtree=RegressionTree.fit(X,price,'crossval', 'on' )
rtree =
classreg.learning.partition.RegressionPartitionedModel
CrossValidatedModel: 'Tree'
PredictorNames: {'x1' 'x2' 'x3'}
CategoricalPredictors: []
ResponseName: 'Y'
NObservations: 5255
KFold: 10
Partition: [1x1 cvpartition]
ResponseTransform: 'none'
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Resampling Techniques en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!