How to get crossval on Classification Linear?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi, there are crossval methods available for ClassificationTree & ClassificationEnsemble
I have a ClassificationLinear created from fitclinear with hyperparameter optimization.
How do use crossval function on ClassificationLinear?
1 comentario
Karan Nandankar
el 4 de En. de 2021
Hi,
Can you try using the following line of code in your workflow,
CVMdl = fitclinear(X,Y,'CrossVal','on');
% KFold Loss
error = kfoldLoss(CVMdl)
Respuestas (0)
Ver también
Categorías
Más información sobre Classification Trees en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!