MCPcopy Index your code
hub / github.com/tensorflow/tfjs-examples / testTrainAndSaveSequential

Method testTrainAndSaveSequential

iris/python/iris_test.py:49–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 json.load(open(os.path.join(self._tmp_dir, 'model.json'), 'rt'))
48
49 def testTrainAndSaveSequential(self):
50 final_train_accuracy = iris.train(100, self._tmp_dir, sequential=True)
51 self.assertGreater(final_train_accuracy, 0.9)
52
53 # Check that the model json file is created.
54 json.load(open(os.path.join(self._tmp_dir, 'model.json'), 'rt'))
55
56
57if __name__ == '__main__':

Callers

nothing calls this directly

Calls 2

trainMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected