Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ forward
Method
forward
rl2/mountaincar/pg_tf.py:41–46 ·
view source on GitHub ↗
(self, X)
Source
from the content-addressed store, hash-verified
39
self.f = f
40
41
def
forward(self, X):
42
if
self.use_bias:
43
a = tf.matmul(X, self.W) + self.b
44
else
:
45
a = tf.matmul(X, self.W)
46
return
self.f(a)
47
48
49
# approximates pi(a | s)
Callers
2
__init__
Method · 0.95
__init__
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected