Skip to content

Commit 4f3de01

Browse files
authored
Update Readme
1 parent ebf1701 commit 4f3de01

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,28 @@ In this implementation, I have used Adapting the learning rate method.
2424

2525
According to classes a sample Cost matrix is created as mentioned below:
2626

27-
Class 0 Class 1 Class 2 Class 3 Class 4 Class 5
27+
cls : '0'   '1'     '2' '3' '4' '5'
2828

29-
Class 0   0       0       1       1     1       1.5
29+
'0' : 0   0    -  1   -   1  -   1  -  1.5
3030

31-
Class 1 0 0 1 1 1 1.5
31+
'1' : 0 - 0 - 1 - 1 - 1 - 1.5
3232

33-
Class 2 1 1 0 0 0 1
33+
'2' : 1 - 1 - 0 - 0 - 0 - 1
3434

35-
Class 3 1 1 0 0 0 1
35+
'3' : 1 - 1 - 0 - 0 - 0 - 1
3636

37-
Class 4 1 1 0 0 0 1
37+
'4' : 1 - 1 - 0 - 0 - 0 - 1
3838

39-
Class 5 1.5 1.5 1 1 1 0
39+
'5' : 1.5 - 1.5 - 1 - 1 - 1 - 0
4040

4141
Misclassification cost is applied in the form of learning rate increase (by constant value c).
4242

4343
Ex:
44+
4445
Expected class 1 predict 0, new learning rate will be l_rate + 0*C
46+
4547
Expected class 1 predict 4, new learning rate will be l_rate + 1*Cs
48+
4649
Expected class 1 predict 5, new learning rate will be l_rate + 1.5*C
4750

4851
In execution l_rate is 0.5 and C is 0.2

0 commit comments

Comments
 (0)