File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -24,25 +24,28 @@ In this implementation, I have used Adapting the learning rate method.
24
24
25
25
According to classes a sample Cost matrix is created as mentioned below:
26
26
27
- Class 0 Class 1 Class 2 Class 3 Class 4 Class 5
27
+ cls : '0' '1' '2' '3' '4' '5'
28
28
29
- Class 0 0 0 1 1 1 1.5
29
+ '0' : 0 - 0 - 1 - 1 - 1 - 1.5
30
30
31
- Class 1 0 0 1 1 1 1.5
31
+ '1' : 0 - 0 - 1 - 1 - 1 - 1.5
32
32
33
- Class 2 1 1 0 0 0 1
33
+ '2' : 1 - 1 - 0 - 0 - 0 - 1
34
34
35
- Class 3 1 1 0 0 0 1
35
+ '3' : 1 - 1 - 0 - 0 - 0 - 1
36
36
37
- Class 4 1 1 0 0 0 1
37
+ '4' : 1 - 1 - 0 - 0 - 0 - 1
38
38
39
- Class 5 1.5 1.5 1 1 1 0
39
+ '5' : 1.5 - 1.5 - 1 - 1 - 1 - 0
40
40
41
41
Misclassification cost is applied in the form of learning rate increase (by constant value c).
42
42
43
43
Ex:
44
+
44
45
Expected class 1 predict 0, new learning rate will be l_rate + 0* C
46
+
45
47
Expected class 1 predict 4, new learning rate will be l_rate + 1* Cs
48
+
46
49
Expected class 1 predict 5, new learning rate will be l_rate + 1.5* C
47
50
48
51
In execution l_rate is 0.5 and C is 0.2
You can’t perform that action at this time.
0 commit comments