def test_validate_bag(self): bag_generator = LoadMIL.bag_data_generator(pipeline='whole', verbose=False) bag, label = next(bag_generator) self.assertTrue(LoadMIL.validate_bag(bag)) return None
def test_bag_data_generator(self): bag_generator = LoadMIL.bag_data_generator(pipeline='whole', verbose=False) bag = next(bag_generator) self.assertIsInstance(bag[0], csr_matrix) return None