Skip to content

Commit

Permalink
debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasryck committed Sep 30, 2024
1 parent 1b970b5 commit 794bfe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyanure/estimators.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def fit(self, X, labels, le_parameter=None):

if (self.multi_class == "multinomial" or
(self.multi_class == "auto" and not self._binary_problem)) and self.loss == "logistic":
if len(np.unique(labels)) != 2 or self.multi_class == "multinomial":
if len(np.unique(labels)) != 2:
self._binary_problem = False

loss = "multiclass-logistic"
Expand Down

0 comments on commit 794bfe8

Please sign in to comment.