Exemple #1
0
    def __init__(self, parent=None, signalManager=None):
        self.method = 0
        self.threshold = 3.84
        self.optimizer = Bmda()
        GbBaseEdaWidget.__init__(self, parent, signalManager, 'BMDA')
        self.inputs = [("Cost Function", GbCostFunction,
                        self.set_cost_function)]
        self.outputs = [("Optimizer", GbBaseOptimizer),
                        ("Solution", GbSolution)]
        self.settingsList.append('method')

        radio_box = OWGUI.radioButtonsInBox(
            self,
            self,
            "method",
            box="Dependency Method",
            btnLabels=[
                "Chi square", "Mutual information",
                "Combined mutual information and p-value"
            ],
            callback=self.method_changed)
        self.threshold_textbox = OWGUI.lineEdit(
            radio_box,
            self,
            "threshold",
            label="Dependency strength threshold",
            valueType=float,
            validator=QDoubleValidator(0.0, 10000.0, 4, self.controlArea))
        #radio_box.layout().addWidget(self.threshold_textbox.box)
        self.verticalLayoutWidget.layout().addWidget(radio_box)
        self.attributesTree.header().setResizeMode(
            QHeaderView.ResizeToContents)
Exemple #2
0
 def __init__(self, parent=None, signalManager=None):
     self.optimizer = Pbilc()
     self.settingsList.append("learning_rate")
     GbBaseEdaWidget.__init__(self, parent, signalManager, 'UMDAc')
     self.inputs = [("Cost Function", GbCostFunction,
                     self.set_cost_function)]
     self.outputs = [("Optimizer", GbBaseOptimizer),
                     ("Solution", GbSolution)]
Exemple #3
0
 def setup_ui(self):
     GbBaseEdaWidget.setup_ui(self)
     learning_editor = OWGUI.lineEdit(self, self, "learning_rate", label="Learning Rate", valueType = float, validator = QDoubleValidator(0.0, 1.0, 4, self.controlArea))
     self.paramBox.layout().addRow(learning_editor.box, learning_editor)
Exemple #4
0
 def setup_ui(self):
     GbBaseEdaWidget.setup_ui(self)