From 5f7573dbed29daa1ad45c458e4c33a7820c4b85c Mon Sep 17 00:00:00 2001 From: Gustavo Bertoli Date: Wed, 13 Jul 2022 16:48:07 +0200 Subject: [PATCH] Fix of sklearn logreg example (#1282) --- examples/sklearn-logreg-mnist/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/sklearn-logreg-mnist/utils.py b/examples/sklearn-logreg-mnist/utils.py index efccf97e4a1f..86eae13ddf1f 100644 --- a/examples/sklearn-logreg-mnist/utils.py +++ b/examples/sklearn-logreg-mnist/utils.py @@ -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