Created
July 12, 2017 13:09
-
-
Save FranciscusRenatus/1d2f90f8b16874440c44af13d7d3105a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Implementing UCB | |
import math | |
N = 10000 | |
d = 10 | |
ads_selected = [] | |
numbers_of_selections = [0] * d | |
sums_of_rewards = [0] * d | |
total_reward = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment