diff --git a/cyanure/estimators.py b/cyanure/estimators.py index 3465c8f52..c174a01bb 100644 --- a/cyanure/estimators.py +++ b/cyanure/estimators.py @@ -299,7 +299,7 @@ def fit(self, X, labels, le_parameter=None): loss = self.loss if (loss == "multiclass-logistic" or loss == "logistic") and self.lambda_1 == np.inf: - self.lambda_1 = 1 / (2 * X.shape[0]) + self.lambda_1 = 0 elif (self.lambda_1 == np.inf): self.lambda_1 = 0