class AllDS2020(): """ AllDS2020 CNN Class Core AllDS2020 CNN Tensorflow 2.0 class. """ def __init__(self): """ Initializes the class. """ self.Helpers = Helpers("Core") self.Core = Model() self.Helpers.logger.info("AllDS2020 CNN initialization complete.") def do_train(self): """ Creates & trains the model. """ self.Core.do_data() self.Core.do_network() self.Core.do_train() self.Core.do_evaluate() def do_load_model(self): """ Loads the model """ self.Core.load_model_and_weights() def do_classify(self): """ Loads model and classifies test data """ self.do_load_model() self.Core.test_classifier() def do_server(self): """ Loads the API server """ self.do_load_model() self.Server = Server(self.Core) self.Server.start() def do_http_classify(self): """ Loads model and classifies test data """ self.Core.test_http_classifier()
class ALLoneAPI(): """ ALLoneAPI CNN Core class for the OneAPI Acute Lymphoblastic Leukemia Classifier CNN. """ def __init__(self): """ Initializes the class. """ self.Helpers = Helpers("Core") self.Core = Model() self.Helpers.logger.info("Class initialization complete.") def do_train(self): """ Creates & trains the model. """ self.Core.do_data() self.Core.do_network() self.Core.do_train() self.Core.do_evaluate() def do_load_model(self): """ Loads the model """ self.Core.load_model_and_weights() def do_classify(self): """ Loads model and classifies test data """ self.do_load_model() self.Core.test_classifier() def do_server(self): """ Loads the API server """ self.do_load_model() self.Server = Server(self.Core) self.Server.start() def do_http_classify(self): """ Loads model and classifies test data """ self.Core.test_http_classifier()