-
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
feat: IGL reduction #4295
feat: IGL reduction #4295
Conversation
cheng-tan
commented
Dec 1, 2022
•
edited
Loading
edited
- Added CB_WITH_OBSERVATIONS label type for IGL problems
- In json parser, if the label type is CB_WITH_OBSERVATIONS, "o" will be parsed and added as the last example (observation example) when constructing vw examples
- Updated shared feature merger to not merge observation example
- Update learn/predict in IGL reduction to use inverse kinematics approach
- Updated stats print in IGL reduction
a00ff2a
to
a7ab250
Compare
multi_learner *pi_learner = as_multiline(stack_builder.setup_base_learner()); | ||
|
||
// 1. fetch already allocated coin reduction | ||
auto* ftrl_coin = pi_learner->get_learner_by_name_prefix("ftrl-Coin"); |
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.
Nit: Provide a better error message if the user didn't supply coin.
a7ab250
to
7c435d7
Compare
b6892c2
to
ff6b72e
Compare
f3080de
to
efc10bb
Compare
b6f6217
to
dddf73a
Compare
3e81c3b
to
c764e99
Compare
c764e99
to
34686f1
Compare
34686f1
to
3d5b55e
Compare
9f0d953
to
7492dbd
Compare
29dcc42
to
220af1d
Compare
3d59072
to
84420d7
Compare
- Rebase fix variable name - Set up IGL unit test - IGL learn/predict
7c85dc8
to
9dd38b3
Compare
85ac3ec
to
ba852ae
Compare
#include <cstddef> | ||
#include <cstdint> | ||
|
||
namespace |
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.
Anonymous namespaces should not be used in headers. This should be in a namespace like VW::reductions
VW::label_parser_reuse_mem& /*reuse_mem*/, const std::vector<VW::string_view>& /*words*/, | ||
VW::io::logger& /*logger*/) | ||
{ | ||
// TODO: implement text format parsing for cb with observations |
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.
If this is not implemented please make it throw so a user knows it not there