Skip to content

DOC Fix scipy broken link#23697

Merged
lesteve merged 4 commits intoscikit-learn:mainfrom
Iglesys347:DOC-Fix-broken-scipy-link
Jun 21, 2022
Merged

DOC Fix scipy broken link#23697
lesteve merged 4 commits intoscikit-learn:mainfrom
Iglesys347:DOC-Fix-broken-scipy-link

Conversation

@Iglesys347
Copy link
Copy Markdown
Contributor

Reference Issues/PRs

#23631

What does this implement/fix? Explain your changes.
The link https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.reciprocal.html vas broken, replaced it with https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.stats.reciprocal.html.

As the scipy.stats.reciprocal disappeared in new version of scipy, I changed the link to an old version of the doc.

Any other comments?

@lesteve
Copy link
Copy Markdown
Member

lesteve commented Jun 20, 2022

Rather than linking to a very old scipy doc, I think this is better to link to scipy.stats.loguniform doc and mention that scikit-learn loguniform is a compatibility function for scipy < 1.4.

This is the scipy PR where it was added: scipy/scipy#10815

@Iglesys347
Copy link
Copy Markdown
Contributor Author

Hi @lesteve I changed the link and added a comment, but I'm not sure about it. What do you think ?

@lesteve
Copy link
Copy Markdown
Member

lesteve commented Jun 21, 2022

I pushed a tweak, after thinking a bit more about it, I don't think this is worth mentioning the backward compatibility for scipy < 1.14 since for the next release scipy 1.14 won't be supported. Also sklearn.utils.fixes.loguniform will be removed anyway in the next release #23699.

@lesteve lesteve merged commit 6db963c into scikit-learn:main Jun 21, 2022
@lesteve
Copy link
Copy Markdown
Member

lesteve commented Jun 21, 2022

Merging, thanks a lot!

ogrisel pushed a commit to ogrisel/scikit-learn that referenced this pull request Jul 11, 2022
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Aug 4, 2022
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
glemaitre pushed a commit that referenced this pull request Aug 5, 2022
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants