Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ forward
Method
forward
rl3/es_mujoco.py:59–61 ·
view source on GitHub ↗
(self, X)
Source
from the content-addressed store, hash-verified
57
self.b2 = np.zeros(K)
58
59
def
forward(self, X):
60
Z = self.f(X.dot(self.W1) + self.b1)
61
return
np.tanh(Z.dot(self.W2) + self.b2) * action_max
62
63
def
sample_action(self, x):
64
# assume input is a single state of size (D,)
Callers
1
sample_action
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected