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

Method partial_fit

rl2/cartpole/pg_tf.py:152–155  ·  view source on GitHub ↗
(self, X, Y)

Source from the content-addressed store, hash-verified

150 self.session = session
151
152 def partial_fit(self, X, Y):
153 X = np.atleast_2d(X)
154 Y = np.atleast_1d(Y)
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)

Callers 4

mlpFunction · 0.45
replayMethod · 0.45
play_one_tdFunction · 0.45
play_one_mcFunction · 0.45

Calls 1

runMethod · 0.45

Tested by

no test coverage detected