GUIAssist.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:a-cadmci 作者: florez87 项目源码 文件源码
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.")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号