Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ sample
Method
sample
rl/bayesian_bandit.py:30–31 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
28
return
np.random.random() < self.p
29
30
def
sample(self):
31
return
np.random.beta(self.a, self.b)
32
33
def
update(self, x):
34
self.a += x
Callers
15
ddpg
Function · 0.45
gym_tutorial.py
File · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
sample_action
Method · 0.45
__init__
Method · 0.45
sample_action
Method · 0.45
__init__
Method · 0.45
sample_action
Method · 0.45
sample_action
Method · 0.45
main
Function · 0.45
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected