Skip to content

DOC Improve multiclass calibration example #18763

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Nov 8, 2020

Conversation

lucyleeow
Copy link
Member

Reference Issues/PRs

Follows on from and closes #18729

What does this implement/fix? Explain your changes.

Make notebook style and expand explanations.

Any other comments?

cc @ogrisel @glemaitre

@lucyleeow lucyleeow changed the title WIP DOC Improve multiclass calibration example DOC Improve multiclass calibration example Nov 5, 2020
Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

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

Besides the following comment, LGTM. Thanks @lucyleeow!

Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

This looks good!

One minor comment on the figure description

Comment on lines 75 to 79
# Below we plot a 2-simplex with arrows showing the change in predicted
# probabilities of the test samples. Each vertex of the simplex represents
# a perfectly predicted class (e.g., 1, 0, 0). The mid point
# inside the simplex represents predicting the three classes with equal
# probability (i.e., 1/3, 1/3, 1/3). Each arrow starts at the
Copy link
Member

Choose a reason for hiding this comment

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

While reading this, I find myself needing to sroll back and forth through the large code block to see the figure. Would moving some of this paragraph below the image and reference the image as "In the figure above" be okay here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, hopefully this is better

Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

A few more comments, otherwise LGTM

Comment on lines +19 to +20
# Data
# ----
Copy link
Member

Choose a reason for hiding this comment

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

This isn't rendering as a header, should we do the following instead?

Suggested change
# Data
# ----
# %%
# Data
# ----

@lucyleeow
Copy link
Member Author

Thanks @thomasjpfan , changes made.

@thomasjpfan thomasjpfan merged commit 3a50939 into scikit-learn:master Nov 8, 2020
@lucyleeow lucyleeow deleted the doc_cal branch November 9, 2020 02:46
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.

3 participants