-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
DOC improve docsting following the user guide in mean-shift module #16216
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
Conversation
sklearn/cluster/_mean_shift.py
Outdated
| quantile : float, default=0.3 | ||
| should be between [0, 1] | ||
| 0.5 means that the median of all pairwise distances is used. | ||
| The default is 0.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've edited the descriptions to remove the defaults I had added.
NicolasHug
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the PR @ETay203 , this looks good but there is no need to specify the default inside of the description now that you have them in the first line
sklearn/cluster/_mean_shift.py
Outdated
| The generator used to randomly select the samples from input points | ||
| for bandwidth estimation. Use an int to make the randomness | ||
| deterministic. | ||
| deterministic.The default value is None. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need either, here and in the other places
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed all the defaults I'd added in the descriptions.
Co-Authored-By: Guillaume Lemaitre <[email protected]>
Co-Authored-By: Guillaume Lemaitre <[email protected]>
Co-Authored-By: Guillaume Lemaitre <[email protected]>
Co-Authored-By: Guillaume Lemaitre <[email protected]>
Co-Authored-By: Guillaume Lemaitre <[email protected]>
Co-Authored-By: Guillaume Lemaitre <[email protected]>
Co-Authored-By: Guillaume Lemaitre <[email protected]>
Co-Authored-By: Guillaume Lemaitre <[email protected]>
|
@glemaitre Thank you for the review and suggested changes. I've commited all changes. |
|
@ETay203 Thanks for your contribution. |
removed 'optional' and fixing all default values in _mean_shift.py
fixes #15761
with @mjmolina
@adrinjalali
@noatamir