Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC Fix typos and improve wording in plot_cost_sensitive_learning.py - #34417

Merged
ogrisel merged 4 commits into
scikit-learn:mainfrom
AnneBeyer:fix_example_typos
Jun 30, 2026
Merged

DOC Fix typos and improve wording in plot_cost_sensitive_learning.py#34417
ogrisel merged 4 commits into
scikit-learn:mainfrom
AnneBeyer:fix_example_typos

Conversation

@AnneBeyer

Copy link
Copy Markdown
Contributor

Reference Issues/PRs

Noticed while working through the example Post-tuning the decision threshold for cost-sensitive learning

What does this implement/fix? Explain your changes.

Fixes typos, makes small wording changes to improve clarity and optimizes the code slightly.

AI usage disclosure

I used AI assistance for:

Any other comments?


# %%
# We observe that we obtained the exact same results but the fitting process
# was much faster since we did not perform any hyper-parameter search.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once supported, this point could even be illustrated by a progress bar. ;)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha, i would actually love to see a progress bar for this! Maybe your next PR? :)

@shipitdev shipitdev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the grammer & flow looks clean along with the pandas.plot.hist swap. Thank you @AnneBeyer LGTM :)

Comment thread examples/model_selection/plot_cost_sensitive_learning.py Outdated
Comment thread examples/model_selection/plot_cost_sensitive_learning.py Outdated
Comment thread examples/model_selection/plot_cost_sensitive_learning.py Outdated

@betatim betatim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spotted a few more chances for improvement. Once they are dealt with we can merge this

@ogrisel
ogrisel merged commit 3c5db73 into scikit-learn:main Jun 30, 2026
38 checks passed
prady0t pushed a commit to prady0t/scikit-learn that referenced this pull request Sep 2, 2026
@AnneBeyer
AnneBeyer deleted the fix_example_typos branch September 2, 2026 11:59
@jeremiedbb jeremiedbb mentioned this pull request Sep 8, 2026
14 tasks
jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants