필터 지우기
필터 지우기

SVM with cross-validation

조회 수: 2 (최근 30일)
jason beckell
jason beckell 2018년 3월 8일
편집: jason beckell 2018년 3월 8일
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.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by