-
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.
refactor: [sparse_weights] get for predict (#4651)
* refactor: [sparse_weights] use std::map and get for predict * small fixes * clang * add feature on learn path * update -q:: for sparse tests * add get to array_parameters * brackets for interactions update * fix interaction tests * comments * revert std::map * clang * cpp11 standard * downgrade gcc * cpp11 * just remove latest for ubuntu * add include * revert settings * fix sparse random and test * lint * revert vendored change * tests
- Loading branch information
Showing
17 changed files
with
150 additions
and
23 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
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 @@ | ||
[warning] model file has set of {-q, --cubic, --interactions} settings stored, but they'll be OVERRIDDEN by set of {-q, --cubic, --interactions} settings from command line. | ||
[warning] Any duplicate namespace interactions will be removed | ||
You can use --leave_duplicate_interactions to disable this behaviour. |
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 @@ | ||
creating quadratic features for pairs: :: | ||
using no cache | ||
Reading datafile = train-sets/cb_test.ldf | ||
num sources = 1 | ||
Num weight bits = 18 | ||
learning rate = 0.5 | ||
initial_t = 3 | ||
power_t = 0.5 | ||
cb_type = mtr | ||
Enabled learners: gd, generate_interactions, scorer-identity, csoaa_ldf-rank, cb_adf, cb_explore_adf_greedy, shared_feature_merger | ||
Input label = CB | ||
Output pred = ACTION_PROBS | ||
average since example example current current current | ||
loss last counter weight label predict features | ||
0.066667 0.066667 1 1.0 0:1:0.5 1:0.93 60 | ||
0.033333 0.000000 2 2.0 1:0:0.5 0:0.95 18 | ||
|
||
finished run | ||
number of examples = 3 | ||
weighted example sum = 3.000000 | ||
weighted label sum = 0.000000 | ||
average loss = 0.033333 | ||
total feature number = 96 |
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 @@ | ||
[warning] model file has set of {-q, --cubic, --interactions} settings stored, but they'll be OVERRIDDEN by set of {-q, --cubic, --interactions} settings from command line. | ||
[warning] Any duplicate namespace interactions will be removed | ||
You can use --leave_duplicate_interactions to disable this behaviour. |
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,2 @@ | ||
[warning] Any duplicate namespace interactions will be removed | ||
You can use --leave_duplicate_interactions to disable this behaviour. |
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,24 @@ | ||
creating quadratic features for pairs: :: | ||
final_regressor = standard_sparse_random_model.vw | ||
using no cache | ||
Reading datafile = train-sets/cb_test.ldf | ||
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, shared_feature_merger | ||
Input label = CB | ||
Output pred = ACTION_PROBS | ||
average since example example current current current | ||
loss last counter weight label predict features | ||
0.066667 0.066667 1 1.0 0:1:0.5 1:0.93 60 | ||
0.033333 0.000000 2 2.0 1:0:0.5 0:0.95 18 | ||
|
||
finished run | ||
number of examples = 3 | ||
weighted example sum = 3.000000 | ||
weighted label sum = 0.000000 | ||
average loss = 0.033333 | ||
total feature number = 96 |
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,2 @@ | ||
[warning] Any duplicate namespace interactions will be removed | ||
You can use --leave_duplicate_interactions to disable this behaviour. |
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
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
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