[Numpy-discussion] Add Sampling with Dynamic weights with replacement to np.random.choice

2025-05-02 Thread Shourya Jain via NumPy-Discussion
Feature request : Add replacement based sampling method with weight decay for choosing samples from a list/array I would like to add it with an algorithm as follows : for _ in range(target_size): idx = np.random.choice(a, 1, p=p) # Get a sample samples.append(a[idx]) # Append sam

[Numpy-discussion] Re: Add Sampling with Dynamic weights with replacement to np.random.choice

2025-05-02 Thread Robert Kern via NumPy-Discussion
On Fri, May 2, 2025 at 9:55 AM Shourya Jain via NumPy-Discussion < numpy-discussion@python.org> wrote: > Feature request : Add replacement based sampling method with weight decay > for choosing samples from a list/array > > I would like to add it with an algorithm as follows : > for _ in range(tar

[Numpy-discussion] Fwd: [pypy-dev] Re: Better compatibility of the Python scientific/data stack with fast Python interpreters

2025-05-02 Thread matti picus via NumPy-Discussion
-- Forwarded message - From: matti picus Date: Fri, May 2, 2025 at 11:05 AM Subject: Re: [pypy-dev] Re: [Numpy-discussion] Better compatibility of the Python scientific/data stack with fast Python interpreters To: PyPy Developer Mailing List , Ralf Gommers , hpy-dev On Wed, Apr

[Numpy-discussion] next NumPy Optimization Team meeting - Monday, May 5th, 2025 at 5 pm UTC

2025-05-02 Thread Inessa Pawson via NumPy-Discussion
Hi, all! The next NumPy Optimization Team meeting will be held on Monday, May 5th at 17:00 UTC. Join us via Zoom: https://numfocus-org.zoom.us/j/81261288210?pwd=iwV99tGSjR61RTGEERKM4QKxe46g1n.1 Everyone is welcome and encouraged to attend. To add to the meeting agenda the topics you’d like to discu