weaklearn_ranking_function.m
来自「RankBoost算法实现」· M 代码 · 共 28 行
M
28 行
function [o]=WeakLearn_ranking_function(X,i,theta,qdef)
% Implementation of the ranking function for the weak learner.
%
%% Input
% * X ... d x N matrix, each column is one input.
% * i... the best feature
% * theta ... the best threshold
% * qdef ... the best default score
%
%% Ouput
% * o ... 1 x N vector of the outputs
%
%% Signature
% Author: Vikas Chandrakant Raykar
% E-Mail: vikas@cs.umd.edu
% Date: October 07, 2006
%
[d,N]=size(X);
o=zeros(1,N);
o(find(X(i,:)>theta))=1;
o(find(isnan(X(i,:))==1))=qdef;
return
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?