?? weaklearn_ranking_function.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 + -