Skip to content

DOC Fixes hard coded title in gmm selection example plot#17418

Merged
rth merged 5 commits intoscikit-learn:masterfrom
tbenjamin-pl:issue_17408
Aug 7, 2020
Merged

DOC Fixes hard coded title in gmm selection example plot#17418
rth merged 5 commits intoscikit-learn:masterfrom
tbenjamin-pl:issue_17408

Conversation

@tbenjamin-pl
Copy link
Copy Markdown
Contributor

@tbenjamin-pl tbenjamin-pl commented Jun 1, 2020

Reference Issues/PRs

Fixes #17408

What does this implement/fix? Explain your changes.

Any other comments?

Copy link
Copy Markdown
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.

LGTM

@thomasjpfan
Copy link
Copy Markdown
Member

For future reference, it's good to put "Fixes ISSUE_NUMBER" in your opening message, this would cause github to automatically close the issue this PR is resolving.

@thomasjpfan thomasjpfan changed the title fixed hard coded title in gmm selection example plot. fixes issue 17408 DOC Fixes hard coded title in gmm selection example plot Jun 1, 2020
Comment on lines +97 to +98
plt.title('Selected GMM: {} model, {} components'.format(
best_gmm.covariance_type, best_gmm.n_components))
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.

Hi @tbenjamin-pl what about using a f-string here?

Copy link
Copy Markdown
Member

@rth rth left a comment

Choose a reason for hiding this comment

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

Thanks @tbenjamin-pl !

@rth rth merged commit 61ce18f into scikit-learn:master Aug 7, 2020
jayzed82 pushed a commit to jayzed82/scikit-learn that referenced this pull request Oct 22, 2020
…n#17418)

Co-authored-by: Thomas S. Benjamin <tbenjamin@vencorelabs.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misleading chart title in Gaussian Mixture Model Selection documentation example code

4 participants