def trainSystem(self):
"""
Orders the AppController to train a model based on the selected database.
Parameters
----------
None
Return
----------
None
"""
if self.path_train:
trained = self.controller.train(self.path_train, self.comboBoxDatabaseTrain.currentText())
self.path_train = None
if not trained:
QMessageBox.critical(self.train, "Message", "File columns or labels mismatch.")
else:
QMessageBox.information(self.train, "Message", "Training succesful.")
else:
QMessageBox.warning(self.train, "Message", "Must pick a database file.")
评论列表
文章目录