Skip to content

Commit

Permalink
Improve wording
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturoAmorQ committed Dec 12, 2024
1 parent fc5eb58 commit 239a7b9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions python_scripts/linear_models_sol_03.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 239a7b9

Please sign in to comment.