Skip to content

Instantly share code, notes, and snippets.

@FranciscusRenatus
Created July 12, 2017 13:09
Show Gist options
  • Save FranciscusRenatus/1d2f90f8b16874440c44af13d7d3105a to your computer and use it in GitHub Desktop.
Save FranciscusRenatus/1d2f90f8b16874440c44af13d7d3105a to your computer and use it in GitHub Desktop.
# 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