MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / forward

Method forward

rl3/es_flappy.py:94–96  ·  view source on GitHub ↗
(self, X)

Source from the content-addressed store, hash-verified

92 self.b2 = np.zeros(K)
93
94 def forward(self, X):
95 Z = self.f(X.dot(self.W1) + self.b1)
96 return softmax(Z.dot(self.W2) + self.b2)
97
98 def sample_action(self, x):
99 # assume input is a single state of size (D,)

Callers 1

sample_actionMethod · 0.95

Calls 1

softmaxFunction · 0.70

Tested by

no test coverage detected