📄 exp2_gda.m
字号:
%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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -