MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / update

Method update

ab_testing/bayesian_bandit.py:33–36  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

31 return np.random.beta(self.a, self.b)
32
33 def update(self, x):
34 self.a += x
35 self.b += 1 - x
36 self.N += 1
37
38
39def plot(bandits, trial):

Callers 1

experimentFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected