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

Method partial_fit

rl2/mountaincar/pg_tf.py:157–163  ·  view source on GitHub ↗
(self, X, Y)

Source from the content-addressed store, hash-verified

155 self.session = session
156
157 def partial_fit(self, X, Y):
158 X = np.atleast_2d(X)
159 X = self.ft.transform(X)
160 Y = np.atleast_1d(Y)
161 self.session.run(self.train_op, feed_dict={self.X: X, self.Y: Y})
162 cost = self.session.run(self.cost, feed_dict={self.X: X, self.Y: Y})
163 self.costs.append(cost)
164
165 def predict(self, X):
166 X = np.atleast_2d(X)

Callers 2

updateMethod · 0.45
play_one_tdFunction · 0.45

Calls 2

transformMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected