Skip to content

Commit

Permalink
Fix penalty for LogisticRegression
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelvallat committed Feb 3, 2024
1 parent e6ca904 commit 2699cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pingouin/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ def logistic_regression(
# Updated in Pingouin > 0.3.6 to be consistent with R
kwargs["solver"] = "newton-cg"
if "penalty" not in kwargs:
kwargs["penalty"] = "none"
kwargs["penalty"] = None
lom = LogisticRegression(**kwargs)
lom.fit(X, y)

Expand Down

0 comments on commit 2699cfa

Please sign in to comment.