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

📄 weaklearn_ranking_function.m

📁 RankBoost算法实现
💻 M
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -