def __init__(self,path, name, threshold):
ch = logging.StreamHandler()
ch.setLevel(logging.INFO)
ch.setFormatter(CustomFormatter())
self.log = logging.getLogger("Classifier")
self.log.setLevel(logging.INFO)
self.log.addHandler(ch)
self.log.propagate = False
self.name = name
self.threshold = threshold
self.gspan_path = "./submodules/SEMA-quickspan/build/" #path.replace("sema_classifier","submodules/SEMA-quickspan/build/")
self.dico_precomputed = []
self.dataset_len = 0
self.train_dataset = None
self.val_dataset = None
self.test_dataset = None
self.stat_dataset = None
self.fscore = None
self.accuracy = None
self.precision = None
self.recall = None
self.loss = None
self.tpr = None
self.balanced_accuracy = None