Effacer les filtres
Effacer les filtres

Cross-validated model parameters extraction in fitcecoc SVM linear kernel

2 vues (au cours des 30 derniers jours)
AMIR KHAN
AMIR KHAN le 29 Oct 2021
Commenté : AMIR KHAN le 30 Oct 2021
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)

Réponses (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov le 30 Oct 2021
You should use these fcns instead of crossval:
kfoldPredict(), predict(), resubPredict()
  1 commentaire
AMIR KHAN
AMIR KHAN le 30 Oct 2021
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.

Connectez-vous pour commenter.

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by