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

Method predict

rl2/cartpole/pg_tf.py:157–159  ·  view source on GitHub ↗
(self, X)

Source from the content-addressed store, hash-verified

155 self.session.run(self.train_op, feed_dict={self.X: X, self.Y: Y})
156
157 def predict(self, X):
158 X = np.atleast_2d(X)
159 return self.session.run(self.predict_op, feed_dict={self.X: X})
160
161
162def play_one_td(env, pmodel, vmodel, gamma):

Callers 2

play_one_tdFunction · 0.45
play_one_mcFunction · 0.45

Calls 1

runMethod · 0.45

Tested by

no test coverage detected