exp2_gda.m

来自「支持向量机工具箱」· 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 + -
显示快捷键?