def __init__(self, master): """Add the spin box for maximal number of attributes""" VizRankDialog.__init__(self, master) OWComponent.__init__(self, master) self.master = master self.n_neighbors = 10 max_n_attrs = len(master.model_selected) + len(master.model_other) - 1 box = gui.hBox(self) self.n_attrs_spin = gui.spin( box, self, "n_attrs", 3, max_n_attrs, label="Maximum number of variables: ", controlWidth=50, alignment=Qt.AlignRight, callback=self._n_attrs_changed, ) gui.rubber(box) self.last_run_n_attrs = None self.attr_color = master.graph.attr_color self.attr_ordering = None self.data = None self.valid_data = None
def __init__(self, master): """Add the spin box for maximal number of attributes""" VizRankDialog.__init__(self, master) OWComponent.__init__(self, master) self.master = master self.n_neighbors = 10 box = gui.hBox(self) max_n_attrs = min(MAX_DISPLAYED_VARS, len(master.model_selected)) self.n_attrs_spin = gui.spin(box, self, "n_attrs", 3, max_n_attrs, label="Maximum number of variables: ", controlWidth=50, alignment=Qt.AlignRight, callback=self._n_attrs_changed) gui.rubber(box) self.last_run_n_attrs = None self.attr_color = master.attr_color self.attr_ordering = None self.data = None self.valid_data = None self.rank_table.clicked.connect(self.on_row_clicked) self.rank_table.verticalHeader().sectionClicked.connect( self.on_header_clicked)
def __init__(self, master): # Add the spin box for a number of attributes to take into account. VizRankDialog.__init__(self, master) OWComponent.__init__(self, master) box = gui.hBox(self) max_n_attrs = len(master.model_selected) self.n_attrs_spin = gui.spin( box, self, "n_attrs", 3, max_n_attrs, label="Number of variables: ", controlWidth=50, alignment=Qt.AlignRight, callback=self._n_attrs_changed) gui.rubber(box) self.last_run_n_attrs = None self.attr_color = master.attr_color
def __init__(self, master): """Add the spin box for maximal number of attributes""" VizRankDialog.__init__(self, master) OWComponent.__init__(self, master) box = gui.hBox(self) self.max_attr_spin = gui.spin( box, self, "max_attrs", 2, 4, label="Limit the number of attributes to: ", controlWidth=50, alignment=Qt.AlignRight, callback=self.max_attr_changed) gui.rubber(box) self.layout().addWidget(self.button) self.attr_ordering = None self.marginal = {} self.last_run_max_attr = None
def __init__(self, master): """Add the spin box for maximal number of attributes""" VizRankDialog.__init__(self, master) OWComponent.__init__(self, master) box = gui.hBox(self) self.max_attr_spin = gui.spin( box, self, "max_attrs", 2, 4, label="Limit the number of attributes to: ", controlWidth=50, alignment=Qt.AlignRight, callback=self.max_attr_changed) gui.rubber(box) self.layout().addWidget(self.button) self.attr_ordering = None self.marginal = {} self.last_run_max_attr = None
def __init__(self, master): """Add the spin box for maximal number of attributes""" VizRankDialog.__init__(self, master) OWComponent.__init__(self, master) self.master = master self.n_neighbors = 10 max_n_attrs = len(master.model_selected) + len(master.model_other) - 1 box = gui.hBox(self) self.n_attrs_spin = gui.spin( box, self, "n_attrs", 3, max_n_attrs, label="Maximum number of variables: ", controlWidth=50, alignment=Qt.AlignRight, callback=self._n_attrs_changed) gui.rubber(box) self.last_run_n_attrs = None self.attr_color = master.graph.attr_color self.attr_ordering = None self.data = None self.valid_data = None
def __init__(self, master): """Add the spin box for maximal number of attributes""" VizRankDialog.__init__(self, master) OWComponent.__init__(self, master) self.master = master self.n_neighbors = 10 box = gui.hBox(self) self.n_attrs_spin = gui.spin( box, self, "n_attrs", 3, 99, label="Maximum number of variables: ", controlWidth=50, alignment=Qt.AlignRight, callback=self._n_attrs_changed) gui.rubber(box) self.last_run_n_attrs = None self.attr_color = master.attr_color self.attr_ordering = None self.data = None self.valid_data = None self.rank_table.clicked.connect(self.on_row_clicked) self.rank_table.verticalHeader().sectionClicked.connect( self.on_header_clicked)
def __init__(self, master): """Add the spin box for maximal number of attributes""" VizRankDialog.__init__(self, master) OWComponent.__init__(self, master) box = gui.hBox(self) self.max_attr_combo = gui.comboBox( box, self, "max_attrs", label="变量数目:", orientation=Qt.Horizontal, items=["1", "2", "3", "4", "最多 2", "最多 3", "最多 4"], callback=self.max_attr_changed, ) gui.rubber(box) self.layout().addWidget(self.button) self.attr_ordering = None self.marginal = {} self.last_run_max_attr = None self.master.attrs_changed_manually.connect(self.on_manual_change)
def __init__(self, master): """Add the spin box for maximal number of attributes""" VizRankDialog.__init__(self, master) OWComponent.__init__(self, master) box = gui.hBox(self) self.max_attr_combo = gui.comboBox(box, self, "max_attrs", label="Number of variables:", orientation=Qt.Horizontal, items=[ "one", "two", "three", "four", "at most two", "at most three", "at most four" ], callback=self.max_attr_changed) gui.rubber(box) self.layout().addWidget(self.button) self.attr_ordering = None self.marginal = {} self.last_run_max_attr = None self.master.attrs_changed_manually.connect(self.on_manual_change)