def __next__(self):
if self._train_location >= len(self._train_indices) or self._test_location >= len(self._test_indices):
# Reset:
np.shuffle(self._train_indices)
np.shuffle(self._test_indices)
self._train_location = 0
self._test_location = 0
raise StopIteration()
return self.get_train_test_batch()
load_tumor_image_data.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录