Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
34
def
ucb(mean, n, nj):
Callers
3
convert_xmls_to_cocojson
Function · 0.45
negative_grid
Function · 0.45
run_experiment
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected