Skip to content

Conversation

@ohld
Copy link
Contributor

@ohld ohld commented Mar 14, 2016

#6535

Issue was about just to add a link from cross_val_score wiki page to sklearn.metrics.make_scorer, because it worth being there.

This is my first contribution. I will appreciate every comment.

added link to sclera.metrics.make_scorer
@hlin117
Copy link
Contributor

hlin117 commented Mar 14, 2016

Thanks @ohld. We appreciate new contributors to the package. Can you compile the docs into html, and test it?

Run make doc-noplot to build the html files. If you're running in a virtual environment, make sure to install sphinx in your environment.

@ohld
Copy link
Contributor Author

ohld commented Mar 14, 2016

Should I send the screenshot?

@hlin117
Copy link
Contributor

hlin117 commented Mar 14, 2016

Please do, yes =]

@ohld
Copy link
Contributor Author

ohld commented Mar 14, 2016

2016-03-15 0 08 36

@hlin117
Copy link
Contributor

hlin117 commented Mar 14, 2016

Hmm, the indentation level is bothering me. If you look at the documentation for SelectKBest, you'll see that the indentation style is different.
screenshot 2016-03-14 16 18 39

See Also
---------
:func:`sklearn.metrics.make_scorer`:
Make a scorer from a performance metric or loss function.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm looking at the comment style here. Can you try removing the space before the right-most colon?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there any space? I don't understand.

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like you fixed the error. Thanks!

Copy link
Member

Choose a reason for hiding this comment

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

Check out the syntax for the numpy docstring standard: in the see also section, the "func" syntax is not used.

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 just took syntax from this code @GaelVaroquaux.

Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting reference. Thanks for adding it, @ohld

@ohld
Copy link
Contributor Author

ohld commented Mar 14, 2016

By the way, check please this silly pull request #6543
I will fix this style problems a little bit later: we have a deep night now.

@ohld
Copy link
Contributor Author

ohld commented Mar 15, 2016

So I do all steps mentioned in #6544 with the same code changes and the result is
2016-03-15 18 36 25

So the problem was not in my code but in OS and it's behavior.

@hlin117
Copy link
Contributor

hlin117 commented Mar 15, 2016

+1 for merge

@ohld
Copy link
Contributor Author

ohld commented Mar 18, 2016

@hlin117 so what about merging?

@glouppe
Copy link
Contributor

glouppe commented Mar 19, 2016

Thanks for your contribution! Merging :)

glouppe added a commit that referenced this pull request Mar 19, 2016
@glouppe glouppe merged commit b64e992 into scikit-learn:master Mar 19, 2016
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.

4 participants