diff --git a/Orange/widgets/data/owoutliers.py b/Orange/widgets/data/owoutliers.py index 019f017fea9..d6c016579cf 100644 --- a/Orange/widgets/data/owoutliers.py +++ b/Orange/widgets/data/owoutliers.py @@ -109,6 +109,7 @@ def __init__(self, parent): def get_parameters(self): return {"n_neighbors": self.n_neighbors, "contamination": self.cont / 100, + "algorithm": "brute", # works faster for big datasets "metric": self.METRICS[self.metric_index]} diff --git a/Orange/widgets/data/tests/test_owoutliers.py b/Orange/widgets/data/tests/test_owoutliers.py index 668978b67cd..3e431b41f6d 100644 --- a/Orange/widgets/data/tests/test_owoutliers.py +++ b/Orange/widgets/data/tests/test_owoutliers.py @@ -20,8 +20,8 @@ def test_data(self): """Check widget's data and the output with data on the input""" self.send_signal(self.widget.Inputs.data, self.iris) self.assertEqual(self.widget.data, self.iris) - self.assertEqual(len(self.get_output(self.widget.Outputs.inliers)), 136) - self.assertEqual(len(self.get_output(self.widget.Outputs.outliers)), 14) + self.assertEqual(len(self.get_output(self.widget.Outputs.inliers)), 135) + self.assertEqual(len(self.get_output(self.widget.Outputs.outliers)), 15) self.assertEqual(len(self.get_output(self.widget.Outputs.data)), 150) self.send_signal(self.widget.Inputs.data, None) self.assertEqual(self.widget.data, None) @@ -67,7 +67,7 @@ def test_in_out_summary(self): self.send_signal(self.widget.Inputs.data, self.iris) self.assertEqual(info._StateInfo__input_summary.brief, "150") - self.assertEqual(info._StateInfo__output_summary.brief, "136") + self.assertEqual(info._StateInfo__output_summary.brief, "135") self.send_signal(self.widget.Inputs.data, None) self.assertEqual(info._StateInfo__input_summary.brief, "")