def _setup_gui(self):
     self.ui.topologyDimensionsBox.hide()
     self.ui.topologySelector.addItems(TopologyUtil.registered_topologies())
     self.ui.topologySelector.setCurrentIndex(self.ui.topologySelector.findText(TopologyUtil.default_topology()))
     self.ui.neighbourhoodFunctionSelector.addItems(NeighbourhoodUtil.registered_neighbourhoods())
     self.ui.neighbourhoodFunctionSelector.setCurrentIndex(
         self.ui.neighbourhoodFunctionSelector.findText(NeighbourhoodUtil.default_neighbourhood())
     )
     self.ui.metricSelector.addItems(MetricUtil.registered_metrics())
     self.ui.metricSelector.setCurrentIndex(self.ui.metricSelector.findText(MetricUtil.default_metric()))
     self.ui.kohonenLearningFactorSelector.addItems(LearningFactorUtil.registered_factors())
     self.ui.kohonenLearningFactorSelector.setCurrentIndex(
         self.ui.kohonenLearningFactorSelector.findText(LearningFactorUtil.default_factor())
     )
     self.ui.grossbergLearningFactorSelector.addItems(LearningFactorUtil.registered_factors())
     self.ui.grossbergLearningFactorSelector.setCurrentIndex(
         self.ui.grossbergLearningFactorSelector.findText(LearningFactorUtil.default_factor())
     )
     self.ui.learningRuleSelector.addItems(RulesUtil.rules())
     self.ui.learningRuleSelector.setCurrentIndex(self.ui.learningRuleSelector.findText(RulesUtil.default_layer()))
     self.ui.conscienceThresholdValue.setText(str(1 - round(float(1.0 / self.network.inputs_count()), 2) - 0.01))
 def _setup_gui(self):
     self.ui.topologyDimensionsBox.hide()
     self.ui.topologySelector.addItems(TopologyUtil.registered_topologies())
     self.ui.topologySelector.setCurrentIndex(self.ui.topologySelector.findText(TopologyUtil.default_topology()))
     self.ui.neighbourhoodFunctionSelector.addItems(NeighbourhoodUtil.registered_neighbourhoods())
     self.ui.neighbourhoodFunctionSelector.setCurrentIndex(
         self.ui.neighbourhoodFunctionSelector.findText(NeighbourhoodUtil.default_neighbourhood()))
     self.ui.metricSelector.addItems(MetricUtil.registered_metrics())
     self.ui.metricSelector.setCurrentIndex(self.ui.metricSelector.findText(MetricUtil.default_metric()))
     self.ui.learningFactorSelector.addItems(LearningFactorUtil.registered_factors())
     self.ui.learningFactorSelector.setCurrentIndex(
         self.ui.learningFactorSelector.findText(LearningFactorUtil.default_factor()))