exp2_gda.m
来自「具有图形操作界面的支持向量机多类分类实验系统.全部用Matlab实现,可以实现多」· M 代码 · 共 14 行
M
14 行
%Example: GDA
% Description:
% This function is implimentation of the Generalized Discriminant
% Analysis (GDA) [Baudat01]. The GDA is kernelized version of
% the Linear Discriminant Analysis (LDA). It produce the kernel data
% projection which increases class separability of the projected
% training data.
in_data = load('iris');
subplot(2,1,1);title('原始分布');
ppatterns(in_data);
model = gda(in_data,struct('ker','rbf','arg',1));
out_data = kernelproj( in_data, model );
subplot(2,1,2);title('新的分布');
ppatterns( out_data );
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?