Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
39
def
plot(bandits, trial):
Callers
1
experiment
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected