?? misclass.m
字號(hào):
function [perc,n,which] = misclass(Y,Yest)% The rate of misclassifications.%% '[perc,n,which] = misclass(Y,Yest)'%% 'Y' contains the real class labels; % 'Yest' contains the estimated class labels;% 'perc' is the rate of misclassifications (between 0 and 1); % 'n' is the number of misclassifications;% 'which' contains the indices of the misclassificated instances% (the first column gives the row, the second the column index)%%% see also:% validate, mse, linf, medae, mae% Copyright (c) 2002, KULeuven-ESAT-SCD, License & help @ http://www.esat.kuleuven.ac.be/sista/lssvmlabn = sum(sum(Y~=Yest));perc = n/prod(size(Y));[I,J] = find(Y~=Yest);which = [J I];
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -