Skip to content

Commit a85299b

Browse files
authored
Merge pull request #2647 from mstrazar/outliers_class_fix
Outlier multi-class minor fix.
2 parents c1ccec8 + 45f8e23 commit a85299b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orange/widgets/data/owoutliers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def commit(self):
170170
inliers = outliers = None
171171
self.n_inliers = self.n_outliers = None
172172
if self.data is not None and len(self.data) > 0:
173-
if self.data.Y.ndim > 1:
173+
if self.data.Y.ndim > 1 and self.data.Y.shape[1] > 1:
174174
self.Error.multiclass_error()
175175
else:
176176
inliers, outliers = self._get_outliers()

0 commit comments

Comments
 (0)