Skip to content

Commit 2929896

Browse files
committed
2 parents a32cd06 + 42884fc commit 2929896

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
## Fault detection based on support vector data description (SVDD)
22

3-
---------------------------------------------------------
3+
-------------------------------------------------------------------
4+
Updated on 28 May 2019
5+
1. Added descriptions for the calculation of the radius
6+
2. Added descriptions for the calculation of the distance
7+
from the testing sample to the center of the sphere
8+
-------------------------------------------------------------------
9+
10+
-------------------------------------------------------------------
411
Updated on 24 May 2019
512
1. Fixed some function descriptions
613
2. Added support for some common kernel functions
7-
---------------------------------------------------------
14+
-------------------------------------------------------------------
815

916
## demo
1017
```
@@ -27,7 +34,8 @@ load ('.\data\Y.mat')
2734
2835
% Set parameters
2936
C = 0.2; % trade-off parameter
30-
ker = struct('type','gauss','width',6);
37+
s = 6; % kernel width
38+
ker = struct('type','gauss','width',s);
3139
3240
% Train SVDD hypersphere
3341
model = svdd_train(X_s,C,ker);
@@ -36,7 +44,7 @@ model = svdd_train(X_s,C,ker);
3644
d = svdd_test(model,Y_s);
3745
3846
% Plot the results
39-
plotResult(model.threshold,d)
47+
plotResult(model.R,d)
4048
4149
```
4250

0 commit comments

Comments
 (0)