We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6572c44 commit 27d1d39Copy full SHA for 27d1d39
README.md
@@ -14,6 +14,36 @@
14
+ Knowledge sharing on wrapper feature selection
15
+ Assists others in data mining projects
16
17
+### Example 1
18
+```code
19
+%% Particle Swarm Optimization (PSO)
20
+clear, clc, close;
21
+
22
+% Parameters settings
23
+opts.k = 5;
24
+ho = 0.2;
25
+opts.N = 10;
26
+opts.T = 100;
27
+opts.c1 = 2;
28
+opts.c2 = 2;
29
+opts.w = 0.9;
30
31
+% Prepare data
32
+load ionosphere.mat;
33
+HO = cvpartition(label,'HoldOut',ho);
34
+opts.Model = HO;
35
36
+% Feature selection
37
+FS = jfs('pso',feat,label,opts);
38
39
+% Define index of selected features
40
+sf_idx = FS.sf;
41
42
+% Accuracy
43
+Acc = jknn(feat(:,sf_idx),label,opts);
44
45
+```
46
47
## Requirement
48
49
* MATLAB 2014 or above
0 commit comments