Filter löschen
Filter löschen

SVM with cross-validation

2 Ansichten (letzte 30 Tage)
jason beckell
jason beckell am 8 Mär. 2018
Bearbeitet: jason beckell am 8 Mär. 2018
Dear all,
sorry for disturbing you all again, but I have a silly question about SVM with cross-validation. If I write the following code lines:
Mdl = fitclinear(x,y,'ClassNames',[0 1],'KFold',5);
[Y_hat,~] = predict(Mdl,X);
I get an exception due to the fact that Mdl.Trained contains 5 different classification models estimated by means of cross-validation. Hence, I would like to know if there is an automatically way to select the most performing model from the five models reported in Mdl.Trained.
Many thanks for your kind attention! Best,
Fabio.

Antworten (0)

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by