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

📄 dd_ex6.m

📁 data description toolbox 1.6 单类分类器工具包
💻 M
字号:
% Show the difference between the supervised Mixture of Gaussians (as% implemented in Prtools), the unsupervised mog_dd and the% 'semi-supervised' outmog_dd where one cluster is fixed to model the% uniform outlier distribution.% 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 Netherlands% Make some dataxt = target_class(gendatb([60 60]),'1');xo = 1.6*randn(40,2);x = gendatoc(xt,xo);% Train the three classifiers:w0 = mogc(x,5);w1 = mog_dd(x,0.1,5);w2 = mog_dd(x,0.1,[5 2]);% Show the results:figure(1);s = scatterd(x);axis equal;h0 = plotc(w0);hold on;h1 = plotc(w1,'g');hold on;h2 = plotc(w2,'r');v = ver('matlab');if str2num(v.Version)>7.0	h0 = get(h0,'children');	h1 = get(h1,'children');	h2 = get(h2,'children');endlegend([s(2) s(1) h0(1) h1(1) h2(1)],...  'target','outlier','supervised','unsupervised','unsuperv. + outliers',0);

⌨️ 快捷键说明

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