From 239a7b9234e4141073fbc334fb364b78eef49707 Mon Sep 17 00:00:00 2001 From: ArturoAmorQ Date: Thu, 12 Dec 2024 11:57:29 +0100 Subject: [PATCH] Improve wording --- python_scripts/linear_models_sol_03.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/python_scripts/linear_models_sol_03.py b/python_scripts/linear_models_sol_03.py index a506de5aa..7f9ecf246 100644 --- a/python_scripts/linear_models_sol_03.py +++ b/python_scripts/linear_models_sol_03.py @@ -24,10 +24,13 @@ # %% [markdown] # We confirm that all the selected features are numerical. # -# Compute the generalization performance in terms of accuracy of a linear model -# composed of a `StandardScaler` and a `LogisticRegression`. Use a 10-fold -# cross-validation with `return_estimator=True` to be able to inspect the -# trained estimators. Set `scoring="balanced_accuracy"`. +# Define a linear model composed of a `StandardScaler` followed by a +# `LogisticRegression` with default parameters. +# +# Then use a 10-fold cross-validation to estimate its generalization performance +# in terms of balanced accuracy, i.e. set `scoring="balanced_accuracy"` in the +# `cross_validate` function. Also set `return_estimator=True` to be able to +# inspect the trained estimators. # %% # solution