MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / forward

Method forward

rl2/mountaincar/pg_theano.py:57–62  ·  view source on GitHub ↗
(self, X)

Source from the content-addressed store, hash-verified

55 self.f = f
56
57 def forward(self, X):
58 if self.use_bias:
59 a = X.dot(self.W) + self.b
60 else:
61 a = X.dot(self.W)
62 return self.f(a)
63
64
65# approximates pi(a | s)

Callers 2

__init__Method · 0.95
__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected