Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ update
Method
update
ab_testing/comparing_epsilons.py:21–23 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
19
return
np.random.randn() + self.m
20
21
def
update(self, x):
22
self.N += 1
23
self.m_estimate = (1 - 1.0/self.N)*self.m_estimate + 1.0/self.N*x
24
25
26
def
run_experiment(m1, m2, m3, eps, N):
Callers
1
run_experiment
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected