Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ forward
Method
forward
rl2/cartpole/pg_theano.py:36–41 ·
view source on GitHub ↗
(self, X)
Source
from the content-addressed store, hash-verified
34
self.f = f
35
36
def
forward(self, X):
37
if
self.use_bias:
38
a = X.dot(self.W) + self.b
39
else
:
40
a = X.dot(self.W)
41
return
self.f(a)
42
43
44
# approximates pi(a | s)
Callers
2
__init__
Method · 0.95
__init__
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected