Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Lemaitre <[email protected]>
  • Loading branch information
ArturoAmorQ and glemaitre authored Apr 26, 2024
1 parent 5868299 commit af0b33f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python_scripts/cross_validation_grouping.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
_ = plt.title("Distribution of the test scores")

# %% [markdown]
# Shuffling the data results in higher cross-validated test accuracy with less
# Shuffling the data results in a higher cross-validated test accuracy with less
# variance compared to when the data is not shuffled. It means that some
# specific fold leads to a low score in this case.

Expand All @@ -95,7 +95,7 @@
# %% [markdown]
# Thus, shuffling the data breaks the underlying structure and thus makes the
# classification task easier to our model. To get a better understanding, we can
# read the dataset description:
# read the dataset description in more detail:

# %%
print(digits.DESCR)
Expand Down Expand Up @@ -179,7 +179,7 @@
# %% [markdown]
# Once we group the digits by writer, we can incorporate this information into
# the cross-validation process by using group-aware variations of the strategies
# we have explored in this course, for example, the class `GroupKFold`.
# we have explored in this course, for example, the `GroupKFold` strategy.

# %%
from sklearn.model_selection import GroupKFold
Expand Down

0 comments on commit af0b33f

Please sign in to comment.