-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable 0-indexed labels for csoaa (#3533)
* feat: enable 0-indexed labels for csoaa * clang * address comments * info output * 177
- Loading branch information
Showing
13 changed files
with
206 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
1 | ||
1 | ||
1 | ||
3 | ||
4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[info] label 3 found -- labels are now considered 1-indexed. | ||
Id | ||
Min label:-1 | ||
Max label:1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
1:0 2:1 3:1 4:1 | a b c | ||
1:1 2:1 3:0 4:1 | b c d | ||
1:0 2:1 3:1 4:1 | a c e | ||
1:1 2:1 3:1 4:0 | b d f | ||
1:1 2:0 3:1 4:1 | d e f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
predictions = csoaa_1_ind.predict | ||
Num weight bits = 18 | ||
learning rate = 0.5 | ||
initial_t = 0 | ||
power_t = 0.5 | ||
using no cache | ||
Reading datafile = train-sets/csoaa_1_ind.dat | ||
num sources = 1 | ||
Enabled reductions: gd, scorer-identity, csoaa | ||
Input label = cs | ||
Output pred = multiclass | ||
average since example example current current current | ||
loss last counter weight label predict features | ||
0.000000 0.000000 1 1.0 known 1 4 | ||
0.500000 1.000000 2 2.0 known 1 4 | ||
0.500000 0.500000 4 4.0 known 3 4 | ||
|
||
finished run | ||
number of examples = 5 | ||
weighted example sum = 5.000000 | ||
weighted label sum = 0.000000 | ||
average loss = 0.600000 | ||
total feature number = 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Num weight bits = 18 | ||
learning rate = 0.5 | ||
initial_t = 0 | ||
power_t = 0.5 | ||
using no cache | ||
Reading datafile = train-sets/csoaa_1_ind.dat | ||
num sources = 1 | ||
Enabled reductions: gd, scorer-identity, csoaa | ||
Input label = cs | ||
Output pred = multiclass | ||
average since example example current current current | ||
loss last counter weight label predict features | ||
1.000000 1.000000 1 1.0 known 0 4 | ||
1.000000 1.000000 2 2.0 known 1 4 | ||
0.750000 0.500000 4 4.0 known 3 4 | ||
|
||
finished run | ||
number of examples = 5 | ||
weighted example sum = 5.000000 | ||
weighted label sum = 0.000000 | ||
average loss = 0.800000 | ||
total feature number = 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[warning] label 4 is not in {0,3}. This won't work for 0-indexed actions. | ||
[warning] label 4 is not in {0,3}. This won't work for 0-indexed actions. | ||
[warning] label 4 is not in {0,3}. This won't work for 0-indexed actions. | ||
[warning] label 4 is not in {0,3}. This won't work for 0-indexed actions. | ||
[warning] label 4 is not in {0,3}. This won't work for 0-indexed actions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
predictions = csoaa_1_ind_auto.predict | ||
Num weight bits = 18 | ||
learning rate = 0.5 | ||
initial_t = 0 | ||
power_t = 0.5 | ||
using no cache | ||
Reading datafile = train-sets/csoaa_1_ind.dat | ||
num sources = 1 | ||
Enabled reductions: gd, scorer-identity, csoaa | ||
Input label = cs | ||
Output pred = multiclass | ||
average since example example current current current | ||
loss last counter weight label predict features | ||
0.000000 0.000000 1 1.0 known 1 4 | ||
0.500000 1.000000 2 2.0 known 1 4 | ||
0.500000 0.500000 4 4.0 known 3 4 | ||
|
||
finished run | ||
number of examples = 5 | ||
weighted example sum = 5.000000 | ||
weighted label sum = 0.000000 | ||
average loss = 0.600000 | ||
total feature number = 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
[info] label 0 found -- labels are now considered 0-indexed. | ||
[warning] label 4 is not in {0,3}. This won't work for 0-indexed actions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters