Skip to content
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

test: [LAS ] add spanner tests and test file separation #4146

Merged
merged 4 commits into from
Sep 13, 2022

Conversation

olgavrou
Copy link
Collaborator

new tests in cb_las_spanner:

check_spanner_rejects_same_actions
check_spanner_rejects_actions_that_are_linear_combinations_of_other_actions

@@ -47,7 +47,8 @@ struct AO_triplet_constructor
void one_pass_svd_impl::generate_AOmega(const multi_ex& examples, const std::vector<float>& shrink_factors)
{
auto num_actions = examples[0]->pred.a_s.size();
auto p = std::min(num_actions, _d + 5);
// one pass SVD is going to be less accurate than two pass SVD so we need to over-sample a bit more
auto p = std::min(num_actions, _d + 10);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how do we know to use 5 or 10? shall this be a parameter?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trial and error, we were between 5 and 10 initially, 5 made the unit test fail when switched from vanilla to one_pass but 10 was ok. You can essentially affect this number by tuning d so it seems like an overkill to tune this too

@olgavrou olgavrou enabled auto-merge (squash) September 13, 2022 13:58
@olgavrou olgavrou merged commit 555fe20 into VowpalWabbit:master Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants