-
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: WASM initial CB model API #4574
Conversation
@@ -40,6 +40,9 @@ void validate_options(const VW::config::options_i& options) | |||
if (!options.get_positional_tokens().empty()) { THROW("Positional options are not allowed") } | |||
} | |||
|
|||
struct vw_model_basic; |
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.
can we remove Line 43 - 45 and set the default MinxIn on Line183? to be consistent with cb_vw_model?
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.
these need to be forward declared so that vw_model can be referenced in line 55
For the cb model, the example is not opaque but a javasctipt object that the C++ side can inspect
Moved basic vw functionality out into
vw_model_basic
class which is used as a mixin for thevw_model
which is generic vw model implementation and the newly addedcb_vw_model
vw_model_basic
can be enhanced in the future with any other generic functionality