필터 지우기
필터 지우기

Cross-validated model parameters extraction in fitcecoc SVM linear kernel

조회 수: 2 (최근 30일)
AMIR KHAN
AMIR KHAN 2021년 10월 29일
댓글: AMIR KHAN 2021년 10월 30일
Hi,
I am trying to extract the parameters from the cross-validated model of fitcecoc SVM with linear kernel. I want to extract the parameters which I could use for training and testing. I tried to look into the model but I could not find the bias/beta etc.
mdl = fitcecoc(Xs,Y,'Coding','onevsall','Learners',t);
CVMDL = crossval(mdl, 'kfold',5);
Error = kfoldLoss(CVMDL)

답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 10월 30일
You should use these fcns instead of crossval:
kfoldPredict(), predict(), resubPredict()
  댓글 수: 1
AMIR KHAN
AMIR KHAN 2021년 10월 30일
I want to use the parameters from the cross validated model. I want to fix these parameters to my model. Then I want to train my model on whole train set. Finally, test the trained model using test set.

댓글을 달려면 로그인하십시오.

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by