8000 [MRG+1] DOC clarify OneClassSVM decision_function docstring by albertcthomas · Pull Request #9048 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@albertcthomas
Copy link
Contributor

Reference Issue

This finishes PR #7788 and addresses issue #7713.

What does this implement/fix? Explain your changes.

Clarifies the docstring of the decision function of the OneClassSVM saying that positive means inlier and negative means outlier.

Copy link
Member
@TomDLT TomDLT left a comment

Choose a reason for hiding this comment

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

LGTM

@TomDLT TomDLT changed the title [MRG] DOC clarify OneClassSVM decision_function docstring [MRG+1] DOC clarify OneClassSVM decision_function docstring Jun 8, 2017
def decision_function(self, X):
"""Distance of the samples X to the separating hyperplane.
"""Signed distance to the separating hyperplane: positive if inlier,
negative if outlier.
Copy link
Member

Choose a reason for hiding this comment

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

following https://www.python.org/dev/peps/pep-0257/ the first line should be short without line break.

I would write:

 """Signed distance to the separating hyperplane

Signed distance is positive for an inlier and negative for out outlier.

...

@albertcthomas
Copy link
Contributor Author

Thanks @agramfort

@agramfort agramfort merged commit 9525461 into scikit-learn:master Jun 8, 2017
@agramfort
Copy link
Member

thanks @albertcthomas

@albertcthomas albertcthomas deleted the docstring_ocsvm branch June 8, 2017 12:51
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Jun 8, 2017
Sundrique pushed a commit to Sundrique/scikit-learn that referenced this pull request Jun 14, 2017
…earn#9048)

* clarify ocsvm decision_function docstring

* take into account agramfort comment
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Jun 19, 2017
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Jun 29, 2017
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Jul 19, 2017
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Jul 29, 2017
dmohns pushed a commit to dmohns/scikit-learn that referenced this pull request Aug 7, 2017
…earn#9048)

* clarify ocsvm decision_function docstring

* take into account agramfort comment
dmohns pushed a commit to dmohns/scikit-learn that referenced this pull request Aug 7, 2017
…earn#9048)

* clarify ocsvm decision_function docstring

* take into account agramfort comment
NelleV pushed a commit to NelleV/scikit-learn that referenced this pull request Aug 11, 2017
…earn#9048)

* clarify ocsvm decision_function docstring

* take into account agramfort comment
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Aug 14, 2017
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
…earn#9048)

* clarify ocsvm decision_function docstring

* take into account agramfort comment
AishwaryaRK pushed a commit to AishwaryaRK/scikit-learn that referenced this pull request Aug 29, 2017
…earn#9048)

* clarify ocsvm decision_function docstring

* take into account agramfort comment
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Aug 31, 2017
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Sep 15, 2017
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Sep 25, 2017
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Oct 6, 2017
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Oct 9, 2017
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
…earn#9048)

* clarify ocsvm decision_function docstring

* take into account agramfort comment
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Dec 4, 2017
jwjohnson314 pushed a commit to jwjohnson314/scikit-learn that referenced this pull request Dec 18, 2017
…earn#9048)

* clarify ocsvm decision_function docstring

* take into account agramfort comment
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Apr 23, 2019
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Jul 25, 2019
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Aug 22, 2019
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Oct 5, 2019
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Oct 11, 2019
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Nov 1, 2019
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Jan 10, 2020
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Jan 30, 2020
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Jan 30, 2020
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Feb 27, 2020
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Mar 12, 2020
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Apr 17, 2020
ivannz added a commit to ivannz/scikit-learn that referenced this pull request May 3, 2020
ivannz added a commit to ivannz/scikit-learn that referenced this pull request May 30, 2020
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Jul 5, 2020
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Jul 5, 2020
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Aug 5, 2020
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Oct 15, 2020
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Nov 28, 2020
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Dec 12, 2020
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Feb 25, 2021
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Feb 25, 2021
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Mar 27, 2021
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Jun 15, 2021
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Jul 23, 2021
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Nov 10, 2021
ivannz added a commit to ivannz/scikit-learn that referenced this pull request May 15, 2022
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Jun 14, 2022
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Aug 29, 2022
ivannz added a commit to ivannz/scikit-learn that referenced this pull request Sep 5, 2022
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.

3 participants

0