def test_on_edge_case_datasets(self):
     for data in datasets.datasets():
         try:
             self.send_signal(self.widget.Inputs.data, data)
             self.force_render_table()
         except Exception as e:
             raise AssertionError(f"Failed on `{data.name}`") from e
Esempio n. 2
0
 def test_on_edge_case_datasets(self):
     for data in datasets.datasets():
         try:
             self.send_signal(self.widget.Inputs.data, data)
             self.force_render_table()
         except Exception as e:
             raise AssertionError(f"Failed on `{data.name}`") from e
 def test_datasets(self):
     self.widget.controls.show_strip_plot.setChecked(True)
     self.widget.controls.show_rug_plot.setChecked(True)
     for ds in datasets.datasets():
         self.send_signal(self.widget.Inputs.data, ds)
         for i in range(3):
             cb = self.widget.controls.scale_index
             simulate.combobox_activate_index(cb, i)
Esempio n. 4
0
 def test_datasets(self):
     controls = self.widget.controls
     for ds in datasets.datasets():
         self.send_signal(self.widget.Inputs.data, ds)
         simulate.combobox_run_through_all(controls.selected_var)
         simulate.combobox_run_through_all(controls.group_var)
         simulate.combobox_run_through_all(controls.annot_var)
         simulate.combobox_run_through_all(controls.color_var)
Esempio n. 5
0
 def test_dataset(self):
     for method in CLS_SCORES + REG_SCORES:
         self._get_checkbox(method.shortname).setChecked(True)
     with patch("Orange.widgets.data.owrank.log.warning"), \
             patch("Orange.widgets.data.owrank.log.error"),\
             warnings.catch_warnings():
         warnings.filterwarnings("ignore", "Features .* are constant",
                                 UserWarning)
         for ds in datasets.datasets():
             self.send_signal(self.widget.Inputs.data, ds)
Esempio n. 6
0
 def test_dataset(self):
     for method in CLS_SCORES + REG_SCORES:
         self._get_checkbox(method.shortname).setChecked(True)
     with patch("Orange.widgets.data.owrank.log.warning"), \
             patch("Orange.widgets.data.owrank.log.error"),\
             warnings.catch_warnings():
         warnings.filterwarnings("ignore", "Features .* are constant",
                                 UserWarning)
         for ds in datasets.datasets():
             self.send_signal(self.widget.Inputs.data, ds)
Esempio n. 7
0
    def test_btn_vizrank(self):
        def check_vizrank(data):
            self.send_signal(self.widget.Inputs.data, data)
            if data is not None and data.domain.class_var in \
                    self.widget.controls.attr_color.model():
                self.widget.attr_color = data.domain.class_var
            if self.widget.btn_vizrank.isEnabled():
                vizrank = LinearProjectionVizRank(self.widget)
                states = [state for state in vizrank.iterate_states(None)]
                self.assertIsNotNone(vizrank.compute_score(states[0]))

        check_vizrank(self.data)
        check_vizrank(self.data[:, :3])
        check_vizrank(None)
        for ds in datasets.datasets():
            check_vizrank(ds)
Esempio n. 8
0
    def test_btn_vizrank(self):
        def check_vizrank(data):
            self.send_signal(self.widget.Inputs.data, data)
            if data is not None and data.domain.class_var in \
                    self.widget.controls.attr_color.model():
                self.widget.attr_color = data.domain.class_var
            if self.widget.btn_vizrank.isEnabled():
                vizrank = RadvizVizRank(self.widget)
                states = [state for state in vizrank.iterate_states(None)]
                self.assertIsNotNone(vizrank.compute_score(states[0]))

        check_vizrank(self.data)
        check_vizrank(self.data[:, :3])
        check_vizrank(None)
        for ds in datasets.datasets():
            check_vizrank(ds)
 def test_datasets(self):
     for ds in datasets.datasets():
         self.send_signal(self.widget.Inputs.data, ds)
Esempio n. 10
0
 def test_datasets(self):
     for ds in datasets.datasets():
         self.send_signal(self.widget.Inputs.data, ds)
     self.send_signal(self.widget.Inputs.data, None)
     self.assertFalse(self.widget.Error.no_valid_data.is_shown())
Esempio n. 11
0
 def test_datasets(self):
     for ds in datasets.datasets():
         self.send_signal(self.widget.Inputs.data, ds)
     self.send_signal(self.widget.Inputs.data, None)
     self.assertFalse(self.widget.Error.no_valid_data.is_shown())
Esempio n. 12
0
 def test_dataset(self):
     for method in CLS_SCORES + REG_SCORES:
         self._get_checkbox(method.shortname).setChecked(True)
     for ds in datasets.datasets():
         self.send_signal(self.widget.Inputs.data, ds)