-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: [sparse_weights] get for predict #4651
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
261d47e
refactor: [sparse_weights] use std::map and get for predict
bassmang 7c42c29
small fixes
bassmang ab4aab1
clang
bassmang 1828768
add feature on learn path
bassmang 1e577d4
update -q:: for sparse tests
bassmang fdbe482
add get to array_parameters
bassmang d55390a
brackets for interactions update
bassmang 58cb44d
fix interaction tests
bassmang 0205ef3
comments
bassmang e83e7d9
revert std::map
bassmang 007606c
Merge remote-tracking branch 'upstream/master' into gd_get
bassmang 24a0b63
clang
bassmang 384fb17
Merge branch 'master' into gd_get
bassmang 22f2435
cpp11 standard
bassmang b0e7ec7
downgrade gcc
bassmang bed6b57
cpp11
bassmang da82d06
just remove latest for ubuntu
bassmang bdf30ac
add include
bassmang 3663357
revert settings
bassmang 2636c7d
fix sparse random and test
bassmang cb46dbc
lint
bassmang 7e244fa
revert vendored change
bassmang 6040976
Merge remote-tracking branch 'upstream/master' into gd_get
bassmang fe0e22b
tests
bassmang aff1526
Merge branch 'master' into gd_get
bassmang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's a total of 3 tests using --sparse_weights, might be the opportunity to beef it up - maybe unit tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apart from that, would be cool to add some sparse benchmarks to master and see if they are affected by this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
benchmarks added, tests can be added in a separate PR