-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
[MRG +1] Fix text data tutorial #6923
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
Also, after the fix, I get the following
Is this expected behaviour? I couldn't find the origin of this. |
LGTM. Not sure what recent change triggered this. |
Hi, I am not sure if it is correct but I suppose the
to
should fix the warning IMO. Cheers. |
@@ -449,7 +449,7 @@ that we can use to ``predict``:: | |||
The object's ``best_score_`` and ``best_params_`` attributes store the best | |||
mean score and the parameters setting corresponding to that score:: | |||
|
|||
>>> gs_clf.best_score_ | |||
>>> gs_clf.best_score_ # doctest: +ELLIPSIS |
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.
should be two spaces before #
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.
@jnothman Fixed. Instead of two spaces, I have aligned it with rest of the existing # doctest: +ELLIPSIS
declarations.
#6697 I suspect. |
This looks good to me, and I'm happy to merge; let me know if you'd rather add in a fix for the print statement. |
- Fix a typo. - Fix a floating point error in doctests. - Fix `VisibleDepricationWarning` due to conversion of an array with ndim > 0 to an index. - Convert `print` to `log` to avoid doctests failure. Fixes: scikit-learn#6927 Signed-off-by: Rohan Jain <crodjer@gmail.com>
Included the fix for |
Thanks. |
- Fix a typo. - Fix a floating point error in doctests. - Fix `VisibleDepricationWarning` due to conversion of an array with ndim > 0 to an index. - Convert `print` to `log` to avoid doctests failure. Fixes: scikit-learn#6927 Signed-off-by: Rohan Jain <crodjer@gmail.com>
- Fix a typo. - Fix a floating point error in doctests. - Fix `VisibleDepricationWarning` due to conversion of an array with ndim > 0 to an index. - Convert `print` to `log` to avoid doctests failure. Fixes: scikit-learn#6927 Signed-off-by: Rohan Jain <crodjer@gmail.com>
Reference Issue
Getting a doctest error in my local:
What does this implement/fix? Explain your changes.
Use
doctest: +ELLIPSIS
to fix the issue and fix a type in the document.Any other comments?
None