-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG + 1] Fix Sphinx errors #9420
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
Previously modified with PR scikit-learn#6651
Old refers to new tag added with PR scikit-learn#7388
Why WIP? What remains to be done before this should be reviewed for merge? |
I have few questions that I posted on the issue |
pairwise metrics yet to be documented
…ear_model_plot_sparse_recovery.py. It is deprecated.
LGTM. why WIP, should be done now, right? |
/doc/modules/classes.rst:2: WARNING: Literal block expected; none found. Citation [RH2007] is not referenced. (There were many) I posted these questions on the issue earlier. |
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.
/doc/modules/classes.rst:2: WARNING: Literal block expected; none found. Should I add a new tag like api_ref at Line 1?
I don't understand this warning. Do you?
Citation [RH2007] is not referenced. (There were many) Should I remove ref and replace with an asterisk (*)?
Yes, I guess so
---------- | ||
|
||
.. [Rouseeuw1999] `A Fast Algorithm for the Minimum Covariance | ||
Determinant Estimator, 1999, American Statistical Association and |
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.
Is this properly indented?
---------- | ||
|
||
.. [Rouseeuw1999] `A Fast Algorithm for the Minimum Covariance | ||
Determinant Estimator, 1999, American Statistical Association and |
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.
Is this properly indented?
@@ -85,7 +85,7 @@ class LocalOutlierFactor(NeighborsBase, KNeighborsMixin, UnsupervisedMixin): | |||
|
|||
p : integer, optional (default=2) | |||
Parameter for the Minkowski metric from | |||
:ref:`sklearn.metrics.pairwise.pairwise_distances`. When p = 1, this is |
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 think this should work if you change :ref:
to :func:
, and I would much prefer that.
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.
Done
Thanks, @jnothman for the review comments. Made necessary changes. |
/doc/modules/classes.rst:2: WARNING: Literal block expected; none found. Should I add a new tag like api_ref at Line 1? I was unsure though. But I guess it was expecting a tag at the beginning of the file. ( .. _: ) |
a tag is not a literal block as far as i can tell. is there anything amiss
in the rendering?
…On 24 Jul 2017 5:44 am, "Balakumaran Manoharan" ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In sklearn/neighbors/lof.py
<#9420 (comment)>
:
> @@ -85,7 +85,7 @@ class LocalOutlierFactor(NeighborsBase, KNeighborsMixin, UnsupervisedMixin):
p : integer, optional (default=2)
Parameter for the Minkowski metric from
- :ref:`sklearn.metrics.pairwise.pairwise_distances`. When p = 1, this is
Done
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9420 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEz62bU5NPEz_uhdg20vfN6PqJI_LWLks5sQ6K7gaJpZM4Odl1m>
.
|
I've not confirmed the absence of warnings now, but the changes LGTM. |
How do I get the travis generated html docs URL? |
Tennis doesn't generate docs, circle does. The link under details is https://circleci.com/gh/scikit-learn/scikit-learn/12398?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link. This will show logs etc. You can go straight to the rendered docs with http://scikit-learn.org/circle?12398. http://scikit-learn.org/circle?12398/_changed.html tries to list what's changed. |
I don't understand this error and it has been there forever. We should maybe investigate, but I don't think you should worry about it for this PR. |
LGTM |
there's still
|
Fixing few issues found from CircleCI rendered doc. |
References | ||
---------- | ||
|
||
.. [Rouseeuw1999] `A Fast Algorithm for the Minimum Covariance |
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.
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.
can you try removing the 1999 from the tag?
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 think it's auto generating the number as the same tag has been used several times in the file.
Verified all modified HTML links. Looks Good except Rouseeuw1999 link. |
Estimator, 1999, American Statistical Association and the American | ||
Society for Quality, TECHNOMETRICS` | ||
.. [Butler1993] `R. W. Butler, P. L. Davies and M. Jhun, | ||
.. [ButlerDavies1993] `R. W. Butler, P. L. Davies and M. Jhun, |
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.
Hmm. The renumbering logic lives here: https://github.com/numpy/numpydoc/blob/master/numpydoc/numpydoc.py#L40. I've not looked at it, but if you find a bug, fixes to numpydoc are welcome. We've only recently adopted it and have some fixes to make before releasing scikit-learn using it in 0.20 |
Ok, I can give it a try. |
I'd be happy to merge this PR if that remains a numpydoc bug that we can
fix before 0.20.
…On 26 July 2017 at 12:19, Balakumaran Manoharan ***@***.***> wrote:
Ok, I can give it a try.
For now, what should I do with this PR?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9420 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEz6y5vKmf0rC4M4QxGqQr6xICYeVR6ks5sRqJJgaJpZM4Odl1m>
.
|
most of the PR is independent of this issue, right? |
Hi @amueller Tried without numbers. No luck. Still seeing some random numbers appended at the end of the tag. |
That's really weird.... |
I say open a new issue for that and let's merge this. |
Created an issue @amueller |
Thanks @bmanohar16 |
* Fix Rouseeuw1984 broken link * Change label vbgmm to bgmm Previously modified with PR scikit-learn#6651 * Change tag name Old refers to new tag added with PR scikit-learn#7388 * Remove prefix underscore to match tag * Realign to fit 80 chars * Link to metrics.rst. pairwise metrics yet to be documented * Remove tag as LSHForest is deprecated * Remove all references to randomized_l1 and sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py. It is deprecated. * Fix few Sphinx warnings * Realign to 80 chars * Changes based on PR review * Remove unused ref in calibration * Fix link ref in covariance.rst * Fix linking issues * Differentiate Rouseeuw1999 tag within file. * Change all duplicate Rouseeuw1999 tags * Remove numbers from tag Rousseeuw
* Fix Rouseeuw1984 broken link * Change label vbgmm to bgmm Previously modified with PR scikit-learn#6651 * Change tag name Old refers to new tag added with PR scikit-learn#7388 * Remove prefix underscore to match tag * Realign to fit 80 chars * Link to metrics.rst. pairwise metrics yet to be documented * Remove tag as LSHForest is deprecated * Remove all references to randomized_l1 and sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py. It is deprecated. * Fix few Sphinx warnings * Realign to 80 chars * Changes based on PR review * Remove unused ref in calibration * Fix link ref in covariance.rst * Fix linking issues * Differentiate Rouseeuw1999 tag within file. * Change all duplicate Rouseeuw1999 tags * Remove numbers from tag Rousseeuw
* Fix Rouseeuw1984 broken link * Change label vbgmm to bgmm Previously modified with PR scikit-learn#6651 * Change tag name Old refers to new tag added with PR scikit-learn#7388 * Remove prefix underscore to match tag * Realign to fit 80 chars * Link to metrics.rst. pairwise metrics yet to be documented * Remove tag as LSHForest is deprecated * Remove all references to randomized_l1 and sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py. It is deprecated. * Fix few Sphinx warnings * Realign to 80 chars * Changes based on PR review * Remove unused ref in calibration * Fix link ref in covariance.rst * Fix linking issues * Differentiate Rouseeuw1999 tag within file. * Change all duplicate Rouseeuw1999 tags * Remove numbers from tag Rousseeuw
* Fix Rouseeuw1984 broken link * Change label vbgmm to bgmm Previously modified with PR scikit-learn#6651 * Change tag name Old refers to new tag added with PR scikit-learn#7388 * Remove prefix underscore to match tag * Realign to fit 80 chars * Link to metrics.rst. pairwise metrics yet to be documented * Remove tag as LSHForest is deprecated * Remove all references to randomized_l1 and sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py. It is deprecated. * Fix few Sphinx warnings * Realign to 80 chars * Changes based on PR review * Remove unused ref in calibration * Fix link ref in covariance.rst * Fix linking issues * Differentiate Rouseeuw1999 tag within file. * Change all duplicate Rouseeuw1999 tags * Remove numbers from tag Rousseeuw
* Fix Rouseeuw1984 broken link * Change label vbgmm to bgmm Previously modified with PR scikit-learn#6651 * Change tag name Old refers to new tag added with PR scikit-learn#7388 * Remove prefix underscore to match tag * Realign to fit 80 chars * Link to metrics.rst. pairwise metrics yet to be documented * Remove tag as LSHForest is deprecated * Remove all references to randomized_l1 and sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py. It is deprecated. * Fix few Sphinx warnings * Realign to 80 chars * Changes based on PR review * Remove unused ref in calibration * Fix link ref in covariance.rst * Fix linking issues * Differentiate Rouseeuw1999 tag within file. * Change all duplicate Rouseeuw1999 tags * Remove numbers from tag Rousseeuw
* Fix Rouseeuw1984 broken link * Change label vbgmm to bgmm Previously modified with PR scikit-learn#6651 * Change tag name Old refers to new tag added with PR scikit-learn#7388 * Remove prefix underscore to match tag * Realign to fit 80 chars * Link to metrics.rst. pairwise metrics yet to be documented * Remove tag as LSHForest is deprecated * Remove all references to randomized_l1 and sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py. It is deprecated. * Fix few Sphinx warnings * Realign to 80 chars * Changes based on PR review * Remove unused ref in calibration * Fix link ref in covariance.rst * Fix linking issues * Differentiate Rouseeuw1999 tag within file. * Change all duplicate Rouseeuw1999 tags * Remove numbers from tag Rousseeuw
* Fix Rouseeuw1984 broken link * Change label vbgmm to bgmm Previously modified with PR scikit-learn#6651 * Change tag name Old refers to new tag added with PR scikit-learn#7388 * Remove prefix underscore to match tag * Realign to fit 80 chars * Link to metrics.rst. pairwise metrics yet to be documented * Remove tag as LSHForest is deprecated * Remove all references to randomized_l1 and sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py. It is deprecated. * Fix few Sphinx warnings * Realign to 80 chars * Changes based on PR review * Remove unused ref in calibration * Fix link ref in covariance.rst * Fix linking issues * Differentiate Rouseeuw1999 tag within file. * Change all duplicate Rouseeuw1999 tags * Remove numbers from tag Rousseeuw
Reference Issue
Fixes #9417
What does this implement/fix? Explain your changes.
Fix warnings seen in doc build logs.