(self)
| 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 | |
| 57 | if __name__ == '__main__': |