On Fri, Sep 2, 2011 at 12:58 PM, Nathaniel Smith wrote:
> On Fri, Sep 2, 2011 at 10:14 AM, Christopher Jordan-Squire
> wrote:
>> I made the changes discussed here and pushed them to pull request.
>>
>> https://github.com/numpy/numpy/pull/143#issuecomment-1980897
>
> I think you mean https://githu
On Fri, Sep 2, 2011 at 10:14 AM, Christopher Jordan-Squire
wrote:
> I made the changes discussed here and pushed them to pull request.
>
> https://github.com/numpy/numpy/pull/143#issuecomment-1980897
I think you mean https://github.com/numpy/numpy/pull/151
> I changed the new function's name fro
On Thu, Sep 1, 2011 at 10:55 PM, Nathaniel Smith wrote:
> On Thu, Sep 1, 2011 at 8:31 PM, Christopher Jordan-Squire
> wrote:
>> On Thu, Sep 1, 2011 at 11:14 PM, Robert Kern wrote:
>>> On Thu, Sep 1, 2011 at 22:07, Christopher Jordan-Squire
>>> wrote:
>>>
So in the mean time, are there any
I made the changes discussed here and pushed them to pull request.
https://github.com/numpy/numpy/pull/143#issuecomment-1980897
I changed the new function's name from sample to choice and added the
size=1 default as Robert suggested. I also reverted all the changes
for sample, random, and ranf an
On Thu, Sep 1, 2011 at 8:31 PM, Christopher Jordan-Squire
wrote:
> On Thu, Sep 1, 2011 at 11:14 PM, Robert Kern wrote:
>> On Thu, Sep 1, 2011 at 22:07, Christopher Jordan-Squire
>> wrote:
>>
>>> So in the mean time, are there any suggestions for what this R sample
>>> function should be called,
On Thu, Sep 1, 2011 at 22:31, Christopher Jordan-Squire wrote:
> On Thu, Sep 1, 2011 at 11:14 PM, Robert Kern wrote:
>> On Thu, Sep 1, 2011 at 22:07, Christopher Jordan-Squire
>> wrote:
>>
>>> So in the mean time, are there any suggestions for what this R sample
>>> function should be called, s
On Thu, Sep 1, 2011 at 11:14 PM, Robert Kern wrote:
> On Thu, Sep 1, 2011 at 22:07, Christopher Jordan-Squire
> wrote:
>
>> So in the mean time, are there any suggestions for what this R sample
>> function should be called, since random.sample is apparently taken?
>
> If you default to size=1 (w
On Thu, Sep 1, 2011 at 22:07, Christopher Jordan-Squire wrote:
> So in the mean time, are there any suggestions for what this R sample
> function should be called, since random.sample is apparently taken?
If you default to size=1 (which you probably should anyways), then
np.random.choice() makes
On Thu, Sep 1, 2011 at 10:48 PM, Robert Kern wrote:
> On Thu, Sep 1, 2011 at 21:39, Christopher Jordan-Squire
> wrote:
>> On Thu, Sep 1, 2011 at 10:01 PM, wrote:
>
>>> First these functions would need to be deprecated.
>>
>> I discussed this with a few other people, and they suggested that it
On Thu, Sep 1, 2011 at 21:39, Christopher Jordan-Squire wrote:
> On Thu, Sep 1, 2011 at 10:01 PM, wrote:
>> First these functions would need to be deprecated.
>
> I discussed this with a few other people, and they suggested that it
> could be alright since it's for numpy 2.0 rather than numpy 1
On Thu, Sep 1, 2011 at 10:01 PM, wrote:
> On Thu, Sep 1, 2011 at 6:02 PM, Christopher Jordan-Squire
> wrote:
>> Hi--I've just submitted a numpy 2.0 pull request for a function sample
>> in np.random. It's essentially an implementation of R's sample
>> function. It allows possibly non-uniform, po
On Thu, Sep 1, 2011 at 6:02 PM, Christopher Jordan-Squire
wrote:
> Hi--I've just submitted a numpy 2.0 pull request for a function sample
> in np.random. It's essentially an implementation of R's sample
> function. It allows possibly non-uniform, possibly without-replacement
> sampling from a give
Hi--I've just submitted a numpy 2.0 pull request for a function sample
in np.random. It's essentially an implementation of R's sample
function. It allows possibly non-uniform, possibly without-replacement
sampling from a given 1-D array-like. This is very useful for quickly
and cleanly creating sam
13 matches
Mail list logo