-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[RLlib] Enable Bandits to work in batches mode(s) (vector envs + multiple workers + train_batch_sizes > 1). #22465
Conversation
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.
very nice PR. thanks, just 1 quick suggestion about comment.
self.arm.partial_fit(x[:, action_id], y) | ||
for i, arm in enumerate(arms): | ||
action_id = arm.item() | ||
self.arm.partial_fit(x[[i], action_id], y[[i]]) |
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.
maybe we can comment here for ParametricLinearModel, x are all the potential arms, arms tells us which one was pulled instead. and the features pointed at by arms should be used to train the actual model "arm" ...
I know it's twisted, maybe it's better left un-explained ...
…s + multiple workers + train_batch_sizes > 1). (ray-project#22465)" This reverts commit c58cd90.
…iple workers + train_batch_sizes > 1). (ray-project#22465)
Enable Bandits to work in batches mode(s) (vector envs + multiple workers + train_batch_sizes > 1).
Why are these changes needed?
Related issue number
Checks
scripts/format.sh
to lint the changes in this PR.