Skip to content

Commit

Permalink
Fix of sklearn logreg example (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
gubertoli authored Jul 13, 2022
1 parent 96eacbf commit 5f7573d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/sklearn-logreg-mnist/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
def get_model_parameters(model: LogisticRegression) -> LogRegParams:
"""Returns the paramters of a sklearn LogisticRegression model."""
if model.fit_intercept:
params = (model.coef_, model.intercept_)
params = [model.coef_, model.intercept_]
else:
params = (model.coef_,)
params = [model.coef_,]
return params


Expand Down

0 comments on commit 5f7573d

Please sign in to comment.