コード例 #1
0
 def on_runButton_clicked(self):
     error_metric = ErrorUtil.get_factor(str(self.ui.errorMetricSelector.currentText()))()
     learning_factor = float(self.ui.learningFactorValue.text())
     momentum = float(self.ui.momentumValue.text())
     learning_iterations = int(self.ui.learningIterations.text())
     bias_enabled = self.ui.biasEnabled.isChecked()
     learning = BackpropagationLearning(self.network, error_metric, learning_factor, momentum, bias_enabled)
     learning.learn(DataNormalizer.normalize(self.input_view.get_data()), learning_iterations)
     self.accept()
コード例 #2
0
 def _setup_gui(self):
     self.ui.errorMetricSelector.addItems(ErrorUtil.registered_factors())
     self.ui.errorMetricSelector.setCurrentIndex(self.ui.errorMetricSelector.findText(ErrorUtil.default_factor()))