def makeClassification(self):
QApplication.setOverrideCursor(Qt.WaitCursor)
self.textEdit.setText("")
self.checkBoxNeedPreprocessing.setEnabled(False)
need_preprocessing = self.checkBoxNeedPreprocessing.isChecked()
self.configurations['classification_knn_k'] = self.spinBox_KNN_K.value()
if self.radioButtonNaiveBayes.isChecked():
self.calculator.setMethod(ClassificationCalculator.METHOD_NAIVE_BAYES, need_preprocessing)
if self.radioButtonRocchio.isChecked():
self.calculator.setMethod(ClassificationCalculator.METHOD_ROCCHIO, need_preprocessing)
if self.radioButtonKNN.isChecked():
self.calculator.setMethod(ClassificationCalculator.METHOD_KNN, need_preprocessing)
if self.radioButtonLLSF.isChecked():
self.calculator.setMethod(ClassificationCalculator.METHOD_LLSF, need_preprocessing)
if self.radioButtonID3.isChecked():
self.calculator.setMethod(ClassificationCalculator.METHOD_ID3, need_preprocessing)
self.profiler.start()
self.calculator.start()
评论列表
文章目录