⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 misclass.m

📁 最小二乘支持向量机的matlab工具箱
💻 M
字号:
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];

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -