MCPcopy Index your code
hub / github.com/MorvanZhou/Tensorflow-Tutorial / train

Method train

tutorial-contents/407_transfer_learning.py:143–145  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

141 return lout
142
143 def train(self, x, y):
144 loss, _ = self.sess.run([self.loss, self.train_op], {self.tfx: x, self.tfy: y})
145 return loss
146
147 def predict(self, paths):
148 fig, axs = plt.subplots(1, 2)

Callers 1

trainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected