Re: [Numpy-discussion] NumPy 1.12.0 release

2017-01-17 Thread Nathan Goldbaum
I've seen reports on the anaconda mailing list of people seeing similar speed ups when they compile e.g. Numpy with a recent gcc. Anaconda has the same issue as manylinux in that they need to use versions of GCC available on CentOS 5. Given the upcoming official EOL for CentOS5, it might make

Re: [Numpy-discussion] NumPy 1.12.0 release

2017-01-17 Thread Jerome Kieffer
On Tue, 17 Jan 2017 08:56:42 -0500 Neal Becker wrote: > I've installed via pip3 on linux x86_64, which gives me a wheel. My > question is, am I loosing significant performance choosing this pre-built > binary vs. compiling myself? For example, my processor might have

Re: [Numpy-discussion] Question about numpy.random.choice with probabilties

2017-01-17 Thread josef . pktd
n >>>> [1,2]+[1,3] = 0.2 + 0.2 = 2*P1 of the trials, item 2 in [1,2]+[2,3] = >>>> 0.2+0.6 = 0.8 = 2*P2, etc. >>>> >>>> However, the algorithm in numpy.random.choice's replace=False >>>> generates, if >>>> I understand correctly, d

Re: [Numpy-discussion] [SciPy-Dev] NumPy 1.12.0 release

2017-01-17 Thread Nathaniel Smith
On Tue, Jan 17, 2017 at 3:47 PM, Neal Becker wrote: > Matthew Brett wrote: > >> Hi, >> >> On Tue, Jan 17, 2017 at 5:56 AM, Neal Becker wrote: >>> Charles R Harris wrote: >>> Hi All, I'm pleased to announce the NumPy 1.12.0 release. This

Re: [Numpy-discussion] [SciPy-Dev] NumPy 1.12.0 release

2017-01-17 Thread Matthew Brett
On Tue, Jan 17, 2017 at 3:47 PM, Neal Becker wrote: > Matthew Brett wrote: > >> Hi, >> >> On Tue, Jan 17, 2017 at 5:56 AM, Neal Becker wrote: >>> Charles R Harris wrote: >>> Hi All, I'm pleased to announce the NumPy 1.12.0 release. This

Re: [Numpy-discussion] Question about numpy.random.choice with probabilties

2017-01-17 Thread aleba...@gmail.com
t;>> >>> My question is how does this result fit the desired probabilities? >>> >>> If we get [1,2] at probability 0.2 and [1,3] at probability 0.2333, >>> then the expect number of "1" results we'll get per drawing is 0.2 + >>> 0.233

Re: [Numpy-discussion] Question about numpy.random.choice with probabilties

2017-01-17 Thread josef . pktd
sult fit the desired probabilities? >>> >>> If we get [1,2] at probability 0.2 and [1,3] at probability 0.2333, >>> then the expect number of "1" results we'll get per drawing is 0.2 + >>> 0.2333 = 0.4, and similarly for "2" the expected number 0.

Re: [Numpy-discussion] Question about numpy.random.choice with probabilties

2017-01-17 Thread Nadav Har'El
33 = 0.4, and similarly for "2" the expected number 0.7666, and >> for >> "3" 0.7. As you can see, the proportions are off: Item 2 is NOT twice >> common than item 1 as we originally desired (we asked for probabilities >> 0.2,

Re: [Numpy-discussion] NumPy 1.12.0 release

2017-01-17 Thread Matthew Brett
Hi, On Tue, Jan 17, 2017 at 5:56 AM, Neal Becker wrote: > Charles R Harris wrote: > >> Hi All, >> >> I'm pleased to announce the NumPy 1.12.0 release. This release supports >> Python 2.7 and 3.4-3.6. Wheels for all supported Python versions may be >> downloaded from PiPY >>

[Numpy-discussion] Question about numpy.random.choice with probabilties

2017-01-17 Thread aleba...@gmail.com
-- > Nadav Har'El > n...@scylladb.com > -- next part -- > An HTML attachment was scrubbed... > URL: <https://mail.scipy.org/pipermail/numpy-discussion/ > attachments/20170117/d1f0a1db/attachment-0001.html> > > -- > >

[Numpy-discussion] [REL] matplotlib v2.0.0

2017-01-17 Thread Thomas Caswell
Folks, We are happy to announce the release of (long delayed) matplotlib 2.0! This release completely overhauls the default style of the plots. The source tarball and wheels for Mac, Win, and manylinux for python 2.7, 3.4-3.6 are available on pypi pip install --upgrade matplotlib and conda

Re: [Numpy-discussion] NumPy 1.12.0 release

2017-01-17 Thread Neal Becker
Charles R Harris wrote: > Hi All, > > I'm pleased to announce the NumPy 1.12.0 release. This release supports > Python 2.7 and 3.4-3.6. Wheels for all supported Python versions may be > downloaded from PiPY > , the tarball > and zip files

[Numpy-discussion] Question about numpy.random.choice with probabilties

2017-01-17 Thread Nadav Har'El
Hi, I'm looking for a way to find a random sample of C different items out of N items, with a some desired probabilty Pi for each item i. I saw that numpy has a function that supposedly does this, numpy.random.choice (with replace=False and a probabilities array), but looking at the algorithm