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

📄 votec.m

📁 The pattern recognition matlab toolbox
💻 M
字号:
%VOTEC Voting combining classifier% %  W = VOTEC(V)%  W = V*VOTEC% % INPUT%  V   Set of classifiers%% OUTPUT%  W   Voting combiner%% DESCRIPTION% If V = [V1,V2,V3,...] is a stacked set of classifiers trained for the% same classes, W is the voting combiner: it selects the class with the% highest vote of the base classifiers.  This might also be used as% A*[V1,V2,V3]*VOTEC in which A is a dataset to be classified.%% The direct classifier outputs D = B*W for a test set B are posterior% probability estimates. D(i,j) = (v+1) / (n+c), in which v is the number% of votes object i receives for the j-th class. n is the total number of% classifiers, c the total number of classes.%% The base classifiers may be combined in a stacked way (operating in the% same feature space) by V = [V1,V2,V3, ... ] or in a parallel way% (operating in different feature spaces) by V = [V1;V2;V3; ... ]%% EXAMPLES% PREX_COMBINING%% SEE ALSO% MAPPINGS, DATASETS, PRODC, MAXC, MINC,% MEDIANC, MEANC, AVERAGEC, STACKED, PARALLEL% Copyright: R.P.W. Duin, duin@ph.tn.tudelft.nl% Faculty of Applied Sciences, Delft University of Technology% P.O. Box 5046, 2600 GA Delft, The Netherlands % $Id: votec.m,v 1.2 2006/03/08 22:06:58 duin Exp $function w = votec(p1)	prtrace(mfilename);	type = 'vote';               % define the operation processed by FIXEDCC.	name = 'Voting combiner';    % define the name of the combiner.	% this is the general procedure for all possible	% calls of fixed combiners handled by FIXEDCC	if nargin == 0		w = mapping('fixedcc','combiner',{[],type,name});	else		w = fixedcc(p1,[],type,name);	end	if isa(w,'mapping')		w = setname(w,name);	end	return

⌨️ 快捷键说明

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