def SVM(self): x = preprocessings.for_file(self.path) svm = joblib.load('SVM.pkl', mmap_mode='r') prediction = svm.predict(x) print(prediction) export_file(self.path, prediction)
def DecisionTree(self): x = preprocessings.for_file(self.path) decisionTree = joblib.load('DecisionTree.pkl', mmap_mode='r') prediction = decisionTree.predict(x) print(prediction) export_file(self.path, prediction)
def Naive_bayes(self): x = preprocessings.for_file(self.path) NB = joblib.load('NB.pkl', mmap_mode='r') prediction = NB.predict(x) print(prediction) export_file(self.path, prediction)
def KNN(self): x = preprocessings.for_file(self.path) modelscorev2 = joblib.load('KNN.pkl', mmap_mode='r') prediction = modelscorev2.predict(x) print(prediction) export_file(self.path, prediction)