svm - How to plot ROC using fitcecoc function of MATLAB? -


i using fitcecoc train multi class svm , plot roc curves.but couldn,t plot using plotroc(ttest,y_svm),%test set

https://www.mathworks.com/help/stats/fitcecoc.html

k = 4; crossvalindices = crossvalind('kfold', size(b,2), k); tic = 1: k     display(['cross validation, folds ' num2str(i)])     indicesi = crossvalindices==i;     tempind = crossvalindices;     tempind(indicesi) = [];     xtraining = b(:, crossvalindices~=i);     ttrain = t_new1(:, crossvalindices~=i);      xtest = b(:, crossvalindices ==i);     ttest = t_new1(:, crossvalindices ==i);   t=templatesvm('iterationlimit',6000,'kernelfunction','polynomial','solver','isda','standardize',true)    svmstruct=fitcecoc(xtraining',ttrain','learners',t,'coding','onevsall','fitposterior',1);        y_svm=predict(svmstruct,xtest');     [label,~,~,posterior] = resubpredict(svmstruct,xtest');      %testing trained model test dataset      [cmat,ind] = confusionmat(ttest,y_svm);    % display confusion matrix  end 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -