Skip to content

Commit

Permalink
adjust to new scikit syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-sp committed Jan 29, 2024
1 parent 2cb9afe commit 0636234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stepback/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def logreg_opt_value(X, y, lmbda, fit_intercept=False):
if lmbda > 0:
sk = LogisticRegression(C=1/(n_samples*lmbda), penalty='l2', fit_intercept=False, tol=1e-10, random_state=1234)
else:
sk = LogisticRegression(penalty='none', fit_intercept=False, tol=1e-10, random_state=1234)
sk = LogisticRegression(penalty=None, fit_intercept=False, tol=1e-10, random_state=1234)

sk.fit(X,y)
sol = sk.coef_.squeeze()
Expand Down

0 comments on commit 0636234

Please sign in to comment.