load_tumor_image_data.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:NoduleX_code 作者: jcausey-astate 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号