You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DOC: np.random.random documentation refers only to np.random.random_sample #7512
changed the title [-]doc error at https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.random.html#numpy.random.random[/-][+]DOC: np.random.random documentation refers only to np.random.random_sample[/+]on Aug 8, 2018
That's not how it sounds to me. "randomgen" is brand new, so nothing needs deprecating there. And the existing API should not be touched as part of introducing randomgen.
It may be ambiguous. If the suggestion was really to deprecate np.random.random, then no - that's definitely a no-go. It's used way too widely, and there's very little to gain from such a deprecation.
On Fri, Apr 12, 2019, 09:17 Ralf Gommers ***@***.***> wrote:
"in randomgen" (= new)
It may be ambiguous. If the suggestion was really to deprecate
np.random.random, then no - that's definitely a no-go. It's used way too
widely, and there's very little to gain from such a deprecation.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7512 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFU5Reb_F4CDjiVMWefju3q2FpAr7Wr_ks5vgEERgaJpZM4IANv2>
.
Activity
[-]doc error at https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.random.html#numpy.random.random[/-][+]DOC: np.random.random documentation refers only to np.random.random_sample[/+]streeck commentedon Oct 31, 2018
Hi @keithbriggs, I've submitted a PR for this, could you have a look and see if it's ok?
keithbriggs commentedon Nov 3, 2018
ron819 commentedon Nov 15, 2018
If someone going to pick this one up.
Some comments are written in the previous PR:
#12303
bashtage commentedon Apr 11, 2019
@mattip These legacy aliases should be dropped in randomgen. Both
randomandsample, and onlyrandom_sampleshould remain.mattip commentedon Apr 12, 2019
That sounds like a deprecation and so must undergo a deprecation cycle
rgommers commentedon Apr 12, 2019
That's not how it sounds to me. "randomgen" is brand new, so nothing needs deprecating there. And the existing API should not be touched as part of introducing randomgen.
mattip commentedon Apr 12, 2019
"legacy aliases"
rgommers commentedon Apr 12, 2019
"in randomgen" (= new)
It may be ambiguous. If the suggestion was really to deprecate
np.random.random, then no - that's definitely a no-go. It's used way too widely, and there's very little to gain from such a deprecation.bashtage commentedon Apr 12, 2019
rgommers commentedon Apr 12, 2019
This bug report and discussion is about the functions in the
numpy.randomnamespace though, not the legacy or newRandomGenerator.To address this problem, we should just fix the
np.random.randomdocstring. Just:We do this for other aliases as well.
bashtage commentedon Apr 12, 2019
@rgommers This was mostly to link to @mattip 's issue and to be sure that these legacy names don't make it into the new API.
rgommers commentedon Apr 12, 2019
Indeed, that would be good. New API = new chance to make things clean and consistent.
bashtage commentedon Apr 12, 2019
This is (or will be soon) fixed in #13163 using simple pass-throughs that explain these are aliases.