rankboostaucval.m

来自「用于matlab环境下的支持向量机svm的工具箱」· M 代码 · 共 24 行

M
24
字号
function ypred=rankboostAUCval(x,alpha,threshold,rankfeat,T);

% USAGE
%
% ypred=rankboostAUCval(x,alpha,threshold,rankfeat,T);
%
% evaluate a rankboost decision function of data x
%
%  the inputs are 
%  
%   alpha  : vector  of weigth of each weak learner
%   threshold : vector of each weak learner translation
%   rankfeat : vector of each weak learner feature.
%   T       : number of weak learners
%
% see also rankboostAUC

% 30/07/2004  A. Rakotomamonjy

ypred=zeros(size(x,1),1);
for i=1:T
    ypred=ypred+alpha(i)*(x(:,rankfeat(i))>threshold(i));
end;

⌨️ 快捷键说明

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