misclass.m
来自「用RBF人工神经网络的智能算法,实现预测功能」· M 代码 · 共 23 行
M
23 行
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 + =
减小字号Ctrl + -
显示快捷键?