MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / ucb

Function ucb

rl/ucb1.py:34–35  ·  view source on GitHub ↗
(mean, n, nj)

Source from the content-addressed store, hash-verified

32
33
34def ucb(mean, n, nj):
35 return mean + np.sqrt(2*np.log(n) / nj)
36
37
38def run_experiment():

Callers 1

run_experimentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected