Skip to content

[MRG+1] Fixes broken links in docs - #10353

Merged
lesteve merged 38 commits into
scikit-learn:masterfrom
nsheth12:fix-broken-links
Dec 22, 2017
Merged

lesteve merged 38 commits into
scikit-learn:masterfrom
nsheth12:fix-broken-links

Conversation

@nsheth12

@nsheth12 nsheth12 commented Dec 21, 2017 •

Copy link
Copy Markdown
Contributor

Reference Issues/PRs

Fixes the broken links referenced in #10334. Fixes #10334.

@nsheth12 nsheth12 changed the title [WIP] Fix broken links in docs [WIP] Fixes broken links in docs Dec 21, 2017
@jnothman

Copy link
Copy Markdown
Member

You intend to add more to this PR?

@nsheth12

Copy link
Copy Markdown
Contributor Author

Yes. I will try to have it done by end of day today, tomorrow at the latest.

@nsheth12

Copy link
Copy Markdown
Contributor Author

I have finished fixing the links. I was not able to find another link for http://tbayes.eecs.umich.edu/yilun/covestimation. Other than that, this is now ready for review.

@nsheth12 nsheth12 changed the title [WIP] Fixes broken links in docs [MRG] Fixes broken links in docs Dec 22, 2017
@jnothman

jnothman commented Dec 22, 2017 via email

Copy link
Copy Markdown
Member

@nsheth12

Copy link
Copy Markdown
Contributor Author

A Wayback archive for the page exists, but the MATLAB program that is referenced in the docs was not archived (see sklearn/covariance/shrunk_covariance_.py). The other possible reference would be the paper itself (which is already referenced in the docs). The MATLAB program implements a slightly different formula than the one in the paper, and the MATLAB formula is the one used by scikit-learn. However, the MATLAB formula is almost identical to the one in the paper, and the difference is well explained in the scikit-learn documentation. So my gut intuition is that the paper is good enough a reference on its own, without the webpage/MATLAB program. What do you think?

@jnothman

jnothman commented Dec 22, 2017 via email

Copy link
Copy Markdown
Member

@lesteve

lesteve commented Dec 22, 2017

Copy link
Copy Markdown
Member

So my gut intuition is that the paper is good enough a reference on its own, without the webpage/MATLAB program. What do you think?

Same feeling. I checked manually the links and they looked all good.

@lesteve

lesteve commented Dec 22, 2017

Copy link
Copy Markdown
Member

I eye-balled the output of make linkcheck and it seems like all of the errors are false positives so I am +1 on merging this one.

@lesteve lesteve changed the title [MRG] Fixes broken links in docs [MRG+1] Fixes broken links in docs Dec 22, 2017
@lesteve

lesteve commented Dec 22, 2017

Copy link
Copy Markdown
Member

@nsheth12

Copy link
Copy Markdown
Contributor Author

I'm removing the broken link. Will push change very shortly.

@nsheth12

Copy link
Copy Markdown
Contributor Author

Done.

@lesteve

lesteve commented Dec 22, 2017

Copy link
Copy Markdown
Member

You have a flake8 error (trailing whitespace) can you fix it? It would be a good idea to invest some time to configure on-the-fly flake8 checks inside your editor of choice. This allows you to spot these kind of problems while editing.

from the MATLAB program available from the author's webpage
(http://tbayes.eecs.umich.edu/yilun/covestimation).
does not correspond to the one given in the article. It is slightly
modified (see OAS class description for details).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You can use a sphinx directive here, this way this will be a link in the HTML doc, example usage:

Use :class:`sklearn.model_selection.ParameterSampler` instead.

Look at git grep :class: for more examples

@nsheth12

Copy link
Copy Markdown
Contributor Author

Fixed those two issues.

even if that creates a PEP8 violation
@lesteve

lesteve commented Dec 22, 2017

Copy link
Copy Markdown
Member

I pushed a few tweaks, I think this can be merged when CIs are green.

----------
.. [1] https://en.wikipedia.org/wiki/RANSAC
.. [2] http://www.cs.columbia.edu/~belhumeur/courses/compPhoto/ransac.pdf
.. [2] https://www.sri.com/sites/default/files/publications/ransac-publication.pdf

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think the flake8 error here is fine. This is more readable this way.

@lesteve

lesteve commented Dec 22, 2017

Copy link
Copy Markdown
Member

Merging, Travis flake8 error is acceptable, and I double-check the CircleCI doc for the :class: link. Thanks a lot @nsheth12!

@lesteve
lesteve merged commit cec3458 into scikit-learn:master Dec 22, 2017
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.

3 participants