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

Method update

rl/ucb1.py:29–31  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

27 return np.random.random() < self.p
28
29 def update(self, x):
30 self.N += 1.
31 self.p_estimate = ((self.N - 1)*self.p_estimate + x) / self.N
32
33
34def ucb(mean, n, nj):

Callers 3

convert_xmls_to_cocojsonFunction · 0.45
negative_gridFunction · 0.45
run_experimentFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected