Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ predict_all_actions
Method
predict_all_actions
rl/approx_control.py:74–75 ·
view source on GitHub ↗
(self, s)
Source
from the content-addressed store, hash-verified
72
return
x @ self.w
73
74
def
predict_all_actions(self, s):
75
return
[self.predict(s, a)
for
a in ALL_POSSIBLE_ACTIONS]
76
77
def
grad(self, s, a):
78
sa = merge_state_action(s, a)
Callers
2
epsilon_greedy
Function · 0.45
approx_control.py
File · 0.45
Calls
1
predict
Method · 0.95
Tested by
no test coverage detected