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

📄 dd_label.m

📁 支持向量域是近几年采用的一种较新的分类器
💻 M
字号:
function z = dd_label(x,w,realoutput)%DD_LABEL classify the dataset and put labels in the dataset%%   Z = DD_LABEL(X,W)%% Compute the output labels of objects X by mapping through mapping W% and store these labels as normal labels in Z.%% See also: dd_error% Copyright: D.M.J. Tax, D.M.J.Tax@prtools.org% Faculty EWI, Delft University of Technology% P.O. Box 5031, 2600 GA Delft, The Netherlandsif nargin<3	realoutput = 0;endif nargin<2	error('I need a dataset and mapping as input');endismapping(w);istrained(w);% Now we are doing the actual work:if realoutput   % we want to have the real-valued classifier output	out = x*w;	out = +out(:,1) - (+out(:,2));	z = setlabtype(x,'targets');	z = dataset(z,out);else            % we only want to have the labels:	lab = x*w*labeld;	z = dataset(x,lab);endreturn

⌨️ 快捷键说明

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