Skip to content

Conversation

@ETay203
Copy link
Contributor

@ETay203 ETay203 commented Jan 25, 2020

removed 'optional' and fixing all default values in _mean_shift.py
fixes #15761
with @mjmolina

@adrinjalali
@noatamir

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
Copy link
Member

Choose a reason for hiding this comment

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

no need

Copy link
Contributor Author

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.

Copy link
Member

@NicolasHug NicolasHug left a 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

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

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

Copy link
Contributor Author

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.

@glemaitre glemaitre changed the title DOC included default values in _mean_shift.py #15761 DOC improve docsting following the user guide in mean-shift module Jan 26, 2020
ETay203 and others added 8 commits January 26, 2020 14:52
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]>
@ETay203
Copy link
Contributor Author

ETay203 commented Jan 26, 2020

@glemaitre Thank you for the review and suggested changes. I've commited all changes.

@glemaitre glemaitre merged commit 4f28ba5 into scikit-learn:master Jan 26, 2020
@glemaitre
Copy link
Member

@ETay203 Thanks for your contribution.

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.

Fix documentation of default values in all classes

4 participants