)
// publish dataset
upload_did = dataset.publish()
TestBase._mark_entity_for_removal("data", upload_did)
TestBase.logger.info("collected from {}: {}".format(__file__.split("/")[-1],
upload_did))
// test if publish was successful
After Change
)
// publish dataset
dataset.publish()
TestBase._mark_entity_for_removal("data", dataset.id)
TestBase.logger.info("collected from {}: {}".format(__file__.split("/")[-1],
dataset.id))
// test if publish was successful
self.assertIsInstance(dataset.id, int)
downloaded_dataset = None
// fetching from server
// loop till timeout or fetch not successful
max_waiting_time_seconds = 400
// time.time() works in seconds
start_time = time.time()
while time.time() - start_time < max_waiting_time_seconds:
try:
downloaded_dataset = openml.datasets.get_dataset(dataset.id)
break
except Exception as e:
// returned code 273: Dataset not processed yet