Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ add_view
Method
add_view
ab_testing/server_solution.py:36–41 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
34
self.clks += 1
35
36
def
add_view(self):
37
self.views += 1
38
39
# print some helpful stats
40
if
self.views % 50 == 0:
41
print(
"%s: clks=%s, views=%s"
% (self.name, self.clks, self.views))
42
43
44
# initialize bandits
Callers
1
get_ad
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected