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

Skip to content

Add SVC documentation for properties. #5224

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

Closed
wants to merge 5 commits into from
Closed

Add SVC documentation for properties. #5224

wants to merge 5 commits into from

Conversation

andylamb
Copy link

@andylamb andylamb commented Sep 7, 2015

Issue #4687.

Documented fit_status_, probA_, and probB_.

Issue #4687.

Documented `fit_status_`, `probA_`, and `probB_`.
0 if correctly fitted, 1 otherwise (will raise warning)

probA_, probB_ : array
probability estimates, empty array for probability=False
Copy link
Member

Choose a reason for hiding this comment

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

What are the shapes, and what are the interpretations?

@amueller
Copy link
Member

amueller commented Sep 8, 2015

thanks :)

parameters used to produce probability estimates from decision values,
empty array for probability=False. See the section about scores and
probabilities in the SVM section of the User Guide for details.

Copy link
Author

Choose a reason for hiding this comment

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

Also thought Section 8 of http://www.csie.ntu.edu.tw/~cjlin/papers/libsvm.pdf was useful. Should I include in docstring?

Copy link
Member

Choose a reason for hiding this comment

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

Can you add it as References to the docstring? Does it also describe the SVR? Can you check that it is also mentioned in the user guide? Thanks.

Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

ok fair enough.

Copy link
Member

Choose a reason for hiding this comment

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

probA_ and probB_ are not mentioned in the user-guide, right?

Copy link
Author

Choose a reason for hiding this comment

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

http://scikit-learn.org/stable/modules/svm.html#scores-probabilities explains Platt scaling, but doesn't explicitly mention probA_ or probB_.

Copy link
Member

Choose a reason for hiding this comment

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

Exactly.

@andylamb
Copy link
Author

Will render as shown below. Let me know if I should link to the LIBSVM paper differently.

screen shot 2015-09-12 at 2 54 56 pm

@amueller
Copy link
Member

It would be good to give a short explanation of what they do so the user doesn't have to look it up. They are the scaling and offset learned in the platt scaling, right? It would be good to give a formula of what they mean. Otherwise they are useless.

@andylamb
Copy link
Author

@amueller, anything I should change on the last commit?

fit_status_ : int
0 if correctly fitted, 1 otherwise (will raise warning)

probA_, probB_ : array, shape = [n_class * (n_class-1) / 2]
Copy link
Member

Choose a reason for hiding this comment

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

Each should be on its own line. Though you only need the explanation once.
Otherwise it looks greatk.

@amueller
Copy link
Member

Sorry for the long turnaround

@glouppe glouppe added Documentation Easy Well-defined and straightforward way to resolve labels Oct 19, 2015
@jhereth jhereth mentioned this pull request Oct 19, 2018
jhereth pushed a commit to jhereth/scikit-learn that referenced this pull request Oct 19, 2018
@amueller
Copy link
Member

finished in #12427

@amueller amueller closed this Oct 22, 2018
amueller pushed a commit that referenced this pull request Oct 22, 2018
thoo pushed a commit to thoo/scikit-learn that referenced this pull request Nov 14, 2018
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Nov 14, 2018
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Nov 14, 2018
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
koenvandevelde pushed a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Easy Well-defined and straightforward way to resolve
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants