Re: [Numpy-discussion] NEP: Random Number Generator Policy (Robert Kern)

2018-06-11 Thread Kevin Sheppard
Maybe a good place for a stable, testing focused generator would be in numpy.random.testing. This could host a default implementation of StableGenerator, although a better name might be TestingGenerator. It would also help users decide that this is not the generator they are looking for (I th

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-11 Thread Robert Kern
On Sun, Jun 10, 2018 at 11:44 PM Ralf Gommers wrote: > Note that scipy.stats distributions allow passing in either a RandomState instance or an integer as seed (which will be used for seeding a new instance, not for np.random.seed) [1]. That seems like a fine design pattern as well, and passing o

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-11 Thread Robert Kern
On Sun, Jun 10, 2018 at 11:54 PM Ralf Gommers wrote: > > On Sun, Jun 10, 2018 at 11:15 PM, Robert Kern wrote: >> Puzzlingly, the root sin of unconditionally and unavoidably reseeding for some of these functions is still there even though I showed how and why to avoid it. This is one reason why I

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-11 Thread Nathaniel Smith
On Sun, Jun 10, 2018 at 11:53 PM, Ralf Gommers wrote: > > On Sun, Jun 10, 2018 at 11:15 PM, Robert Kern wrote: >> >> The intention of this code is to shuffle two same-length sequences in the >> same way. So now if I write my code well to call np.random.seed() once at >> the start of my program, t

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-11 Thread josef . pktd
On Mon, Jun 11, 2018 at 2:43 AM, Ralf Gommers wrote: > > > On Sun, Jun 10, 2018 at 10:36 PM, Robert Kern > wrote: > >> On Sun, Jun 10, 2018 at 8:04 PM Ralf Gommers >> wrote: >> > >> > On Sun, Jun 10, 2018 at 6:08 PM, Robert Kern >> wrote: >> >> >> >> On Sun, Jun 10, 2018 at 5:27 PM Ralf Gommer

Re: [Numpy-discussion] Allowing broadcasting of code dimensions in generalized ufuncs

2018-06-11 Thread Marten van Kerkwijk
> > Nathaniel: > > Output shape feels very similar to > output dtype to me, so maybe the general way to handle this would be > to make the first callback take the input shapes+dtypes and return the > desired output shapes+dtypes? > > This hits on an interesting alternative to frozen dimensions - np

Re: [Numpy-discussion] NEP: Random Number Generator Policy

2018-06-11 Thread josef . pktd
On Mon, Jun 11, 2018 at 10:26 AM, wrote: > > > On Mon, Jun 11, 2018 at 2:43 AM, Ralf Gommers > wrote: > >> >> >> On Sun, Jun 10, 2018 at 10:36 PM, Robert Kern >> wrote: >> >>> On Sun, Jun 10, 2018 at 8:04 PM Ralf Gommers >>> wrote: >>> > >>> > On Sun, Jun 10, 2018 at 6:08 PM, Robert Kern >>>

[Numpy-discussion] 1.14.5 bugfix release

2018-06-11 Thread Matti Picus
If there is a desire to do a bug-fix release 1.14.5 I would like to try my hand at releasing it, using doc/RELEASE_WALKTHROUGH.rst.txt. There were a few issues around compiling 1.14.4 on alpine and NetBSD. Since 1.15 will probably be released soon, do we continue to push

Re: [Numpy-discussion] 1.14.5 bugfix release

2018-06-11 Thread Charles R Harris
On Mon, Jun 11, 2018 at 11:10 AM, Matti Picus wrote: > If there is a desire to do a bug-fix release 1.14.5 I would like to try my > hand at releasing it, using doc/RELEASE_WALKTHROUGH.rst.txt. There were a > few issues around compiling 1.14.4 on alpine and NetBSD. > Since 1.15 will probably be re

Re: [Numpy-discussion] Allowing broadcasting of code dimensions in generalized ufuncs

2018-06-11 Thread Eric Wieser
Frozen dimensions: I started with just making every 3-vector and 3x3-matrix structured arrays with the relevant single sub-array entry I was actually suggesting omitting the structured dtype (ie, field names) altogether, and just using the subarray dtypes (which exist alone, but not in arrays).