You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Specifically, if the data does not have labels, please change the inputs for training or testing to `svdd.train(trainData)` and `results = svdd.test(testData)`.
63
63
64
64
### 👉 Parameter Optimization for SVDD model
65
-
A class named `SvddOptimization` is defined to optimized the parameters. First define an optimization setting structure, then add it to the svdd parameter structure.The parameter optimization of the polynomial kernel function can only be achieved by using Bayesian optimization.
65
+
A class named `SvddOptimization` is defined to optimized the parameters. First define an optimization setting structure, then add it to the svdd parameter structure.The parameter optimization of the polynomial kernel function can only be achieved by using Bayesian optimization.
66
66
Please see the demonstration [`📝 demo_ParameterOptimization.m`](https://github.com/iqiukp/SVDD-MATLAB/blob/master/demo_ParameterOptimization.m) for details.
67
67
```MATLAB
68
68
% optimization setting
@@ -85,8 +85,7 @@ The full properties of optimization are
85
85
-`display `: visualization, 'on' or 'off'.
86
86
87
87
### 👉 Visualization of SVDD model
88
-
A class named `SvddVisualization` is defined to visualize the training and test results.
89
-
Based on the trained SVDD model, the ROC curve of the training results (only supported for dataset containing both positive and negetive samples) is
88
+
A class named `SvddVisualization` is defined to visualize the training and test results. Based on the trained SVDD model, the ROC curve of the training results (only supported for dataset containing both positive and negetive samples) is
**Notice:** you only need to set PCA in svddParameter, and you don't need to process training data and test data separately.
192
+
Please see the demonstration [`📝demo_demo_DimReduPCA.m`](https://github.com/iqiukp/SVDD-MATLAB/blob/master/demo_DimReduPCA.m) for details.
193
+
*Notice:* you only need to set PCA in svddParameter, and you don't need to process training data and test data separately.
195
194
196
195
### 👉 Weighted SVDD
197
-
An Observation-weighted SVDD is supported in this code.
198
-
Please see the demonstration `demo_ObservationWeight.m` for details.
196
+
An Observation-weighted SVDD is supported in this code.
197
+
Please see the demonstration [`📝demo_ObservationWeight.m`](https://github.com/iqiukp/SVDD-MATLAB/blob/master/demo_ObservationWeight.m) for details.
199
198
```MATLAB
200
199
weight = rand(size(trainData, 1), 1);
201
200
% SVDD parameter
202
201
svddParameter = struct('cost', cost,...
203
202
'kernelFunc', kernel,...
204
203
'weight', weight);
205
204
```
206
-
**Notice:** the size of 'weigh' should be m×1, where m is the number of training samples.
205
+
*Notice:* the size of 'weigh' should be m×1, where m is the number of training samples.
207
206
208
207
### 👉 Hybrid-kernel SVDD model
209
-
A demo for SVDD using Hybrid kernel functions (K =w1×K1+w2×K2+...+wn×Kn).
210
-
Please see the demonstration `demo_HybridKernel.m` for details.
208
+
A demo for SVDD using Hybrid kernel functions (K =w1×K1+w2×K2+...+wn×Kn).
209
+
Please see the demonstration [`📝demo_HybridKernelSVDD.m`](https://github.com/iqiukp/SVDD-MATLAB/blob/master/demo_HybridKernelSVDD.m) for details.
0 commit comments