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

Feature/ucb #2

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Feature/ucb #2

wants to merge 6 commits into from

Conversation

MilaKyr
Copy link

@MilaKyr MilaKyr commented Sep 11, 2023

Hi!
Sorry, it took me more than I expected. Life got in the way..

Changes:

  • Added UCB + tests
  • Added separate methods to update counts and rewards separately. I think it can be useful when library is used in multi-threaded applications, where reward is sent separately from selecting the arm. For example, when showing recommendations, the reward action (click, buy, etc) is sent after the arms were presented. Let me know if you think this is relevant for this library :)
  • Moved common functions to src/utils.rs and tests/common/mod.rs

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.

1 participant