-
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.
Browse files
Browse the repository at this point in the history
* fix: fix #4669 by handling empty decision scores elements * simplify test * ensure empty predictions do not affect num_labeled as well as loss * Update conditional_contextual_bandit.cc * Bounds check for explicit inclusion * Formatting --------- Co-authored-by: Alexey Taymanov <41013086+ataymano@users.noreply.github.com>
- Loading branch information
1 parent
1675c6b
commit 8e4cb19
Showing
10 changed files
with
151 additions
and
4 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 @@ | ||
{"c":{"_multi":[{"f":"1"},{"f":"2"}],"_slots":[{"_inc":[0,1]},{"_inc":[1]}]},"_outcomes":[{"_label_cost":1.0,"_a":[0,1],"_p":[0.5,0.5]},{"_label_cost":0.0,"_a":[1],"_p":[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,23 @@ | ||
only testing | ||
predictions = issue4669_test_pred.txt | ||
using no cache | ||
Reading datafile = train-sets/issue4669.dsjson | ||
num sources = 1 | ||
Num weight bits = 18 | ||
learning rate = 0.5 | ||
initial_t = 1 | ||
power_t = 0.5 | ||
cb_type = mtr | ||
Enabled learners: gd, generate_interactions, scorer-identity, csoaa_ldf-rank, cb_adf, cb_explore_adf_greedy, cb_sample, shared_feature_merger, ccb_explore_adf | ||
Input label = CCB | ||
Output pred = DECISION_PROBS | ||
average since example example current current current | ||
loss last counter weight label predict features | ||
0.000000 0.000000 1 1.0 0:1,1:0 1,None 9 | ||
|
||
finished run | ||
number of examples = 1 | ||
weighted example sum = 1.000000 | ||
weighted label sum = 0.000000 | ||
average loss = 0.000000 | ||
total feature number = 9 |
Empty file.
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,3 @@ | ||
1:1,0:0 | ||
|
||
|
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 @@ | ||
final_regressor = issue4669.model | ||
using no cache | ||
Reading datafile = train-sets/issue4669.dsjson | ||
num sources = 1 | ||
Num weight bits = 18 | ||
learning rate = 0.5 | ||
initial_t = 0 | ||
power_t = 0.5 | ||
cb_type = mtr | ||
Enabled learners: gd, generate_interactions, scorer-identity, csoaa_ldf-rank, cb_adf, cb_explore_adf_greedy, cb_sample, shared_feature_merger, ccb_explore_adf | ||
Input label = CCB | ||
Output pred = DECISION_PROBS | ||
average since example example current current current | ||
loss last counter weight label predict features | ||
1.000000 1.000000 1 1.0 0:1,1:0 0,1 12 | ||
|
||
finished run | ||
number of examples = 1 | ||
weighted example sum = 1.000000 | ||
weighted label sum = 0.000000 | ||
average loss = 1.000000 | ||
total feature number = 12 |
Empty file.
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
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