Skip to content

[MRG] DOC add minimal example to multioutput.ClassifierChain#15211

Merged
glemaitre merged 13 commits intoscikit-learn:masterfrom
top-on:master_upstream
Jun 17, 2020
Merged

[MRG] DOC add minimal example to multioutput.ClassifierChain#15211
glemaitre merged 13 commits intoscikit-learn:masterfrom
top-on:master_upstream

Conversation

@top-on
Copy link
Copy Markdown
Contributor

@top-on top-on commented Oct 12, 2019

Reference Issues/PRs

Relates to #3846

What does this implement/fix? Explain your changes.

Adds an example to the docstring of multioutput.ClassifierChain.

Any other comments?

The code example is a simplification of what is used here:
https://scikit-learn.org/stable/auto_examples/multioutput/plot_classifier_chain_yeast.html

top-on and others added 5 commits October 13, 2019 18:23
Co-Authored-By: Benjamin Bossan <BenjaminBossan@users.noreply.github.com>
Co-Authored-By: Benjamin Bossan <BenjaminBossan@users.noreply.github.com>
@Malesche
Copy link
Copy Markdown
Contributor

@adrinjalali open

Copy link
Copy Markdown
Member

@adrinjalali adrinjalali left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM, thanks @ThorbenJensen

@Malesche Malesche mentioned this pull request Mar 6, 2020
23 tasks
@marenwestermann
Copy link
Copy Markdown
Member

@ThorbenJensen do you plan to continue working on this PR?

Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
@top-on
Copy link
Copy Markdown
Contributor Author

top-on commented May 17, 2020

@marenwestermann
thanks for asking - and for the reminder :-)
I just accepted Adrin's the suggestions (thx, @adrinjalali).
otherwise, no planned changes to this PR from my side.

Copy link
Copy Markdown
Contributor

@cmarmo cmarmo left a comment

Choose a reason for hiding this comment

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

LGTM apart for the suggestions that will fix the errors in testing the docstrings.
Thanks @ThorbenJensen!

[1., 0., 0.],
[0., 1., 0.]])
>>> chain.predict_proba(X_test)
array([[0.8387... , 0.9431... , 0.4576... ],
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.

Suggested change
array([[0.8387... , 0.9431... , 0.4576... ],
array([[0.8387..., 0.9431..., 0.4576...],

[0., 1., 0.]])
>>> chain.predict_proba(X_test)
array([[0.8387... , 0.9431... , 0.4576... ],
[0.8878... , 0.3684... , 0.2640... ],
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.

Suggested change
[0.8878... , 0.3684... , 0.2640... ],
[0.8878..., 0.3684..., 0.2640...],

>>> chain.predict_proba(X_test)
array([[0.8387... , 0.9431... , 0.4576... ],
[0.8878... , 0.3684... , 0.2640... ],
[0.0321... , 0.9935... , 0.0625... ]])
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.

Suggested change
[0.0321... , 0.9935... , 0.0625... ]])
[0.0321..., 0.9935..., 0.0625...]])

@thomasjpfan thomasjpfan changed the title [WIP] DOC add minimal example to multioutput.ClassifierChain [MRG] DOC add minimal example to multioutput.ClassifierChain May 22, 2020
@glemaitre glemaitre self-assigned this Jun 17, 2020
@glemaitre glemaitre merged commit d62af0e into scikit-learn:master Jun 17, 2020
@glemaitre
Copy link
Copy Markdown
Member

Thanks @ThorbenJensen

dsandeep0138 pushed a commit to dsandeep0138/scikit-learn that referenced this pull request Jun 21, 2020
…15211)

Co-Authored-By: Benjamin Bossan <BenjaminBossan@users.noreply.github.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
rubywerman pushed a commit to MLH-Fellowship/scikit-learn that referenced this pull request Jun 24, 2020
…15211)

Co-Authored-By: Benjamin Bossan <BenjaminBossan@users.noreply.github.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
viclafargue pushed a commit to viclafargue/scikit-learn that referenced this pull request Jun 26, 2020
…15211)

Co-Authored-By: Benjamin Bossan <BenjaminBossan@users.noreply.github.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
jayzed82 pushed a commit to jayzed82/scikit-learn that referenced this pull request Oct 22, 2020
…15211)

Co-Authored-By: Benjamin Bossan <BenjaminBossan@users.noreply.github.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Thomas J Fan <thomasjpfan@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.

8 participants