-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDemo_SVC.m
39 lines (30 loc) · 1.12 KB
/
Demo_SVC.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
%==========================================================================
% SVC demo script
%
%==========================================================================
% January 13, 2009
% Implemented by Daewon Lee
% WWW: http://sites.google.com/site/daewonlee/
%==========================================================================
clear all;
clc;
load ring.mat;
data.X=input'; % data.X: p x N input patterns
options=struct('method','CG','ker','rbf','arg',0.5,'C',0.1);
[model]=svc(data,options);
plotsvc(data,model);
options=struct('method','DD','ker','rbf','arg',0.5,'C',0.1);
[model]=svc(data,options);
plotsvc(data,model);
options=struct('method','MST','ker','rbf','arg',0.5,'C',0.1);
[model]=svc(data,options);
plotsvc(data,model);
options=struct('method','KNN','ker','rbf','arg',0.5,'C',0.1);
[model]=svc(data,options);
plotsvc(data,model);
options=struct('method','SEP-CG','ker','rbf','arg',0.5,'C',0.1);
[model]=svc(data,options);
plotsvc(data,model);
options=struct('method','E-SVC','ker','rbf','arg',0.5,'C',0.1);
[model]=svc(data,options);
plotsvc(data,model);