[Numpy-discussion] Automatic binning for np.histogram

2025-03-05 Thread Pieter Eendebak via NumPy-Discussion
er visible change we would like some more input. In particular: * What are expectations of the auto binning algorithm? * What is a reasonable maximum number of bins for a sample of size n? With kind regards, Pieter Eendebak ___ NumPy-Discussion ma

[Numpy-discussion] Re: Suggestions for changes to the polynomial module

2023-08-28 Thread Pieter Eendebak
Hi Steve, The representation of the polynomials without including the domain is indeed confusing. In https://github.com/numpy/numpy/pull/21760 the representation is changed to avoid this. Would this representation work for you, or are there better representations? With kind regards, Pieter

[Numpy-discussion] backwards incompatible change to numpy.busday_count

2023-03-13 Thread Pieter Eendebak
. numpy financials) With kind regards, Pieter Eendebak ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org

[Numpy-discussion] Re: seed for new random number generator

2022-06-21 Thread Pieter Eendebak
we can use the old style of setting the seed) With kind regards, Pieter Eendebak On Sun, Jun 19, 2022 at 5:36 PM Robert Kern wrote: > On Sun, Jun 19, 2022 at 9:37 AM Pieter Eendebak > wrote: > >> Hi everyone, >> >> The new numpy random interface (e.g. r=numpy.rand

[Numpy-discussion] seed for new random number generator

2022-06-19 Thread Pieter Eendebak
(seed=42) # fails, with good error message rng.bit_generator.state['state']['state']=42 # has no effect, perhaps make this dict read-only? Is there a way to set the seed without creating a new RNG object? With kind regards, Pieter Eendebak _

[Numpy-discussion] Re: overhead of numpy scalars

2022-06-02 Thread Pieter Eendebak
the suggestions from Sebastian (free lists or scalar ufuncs) might be required, but both involve some larger effort. With kind regards, Pieter Eendebak On Wed, May 4, 2022 at 3:49 PM Sebastian Berg wrote: > On Tue, 2022-05-03 at 15:06 +0200, Pieter Eendebak wrote: > > Hi everyone, > > >

[Numpy-discussion] normalization of Polynomial

2022-05-24 Thread Pieter Eendebak
omial([Polynomial([1.0217, 0.99 ], domain=[-1., 1.], window=[-1., 1.])], dtype=object, domain=[-1., 1.], window=[-1., 1.]) but I am looking for: Polynomial([1.0217, 0.99 ], domain=[-1., 1.], window=[-1., 1.]) With kind regards, Pieter Eendebak __

[Numpy-discussion] overhead of numpy scalars

2022-05-04 Thread Pieter Eendebak
? With kind regards, Pieter Eendebak Example benchmark: import numpy as np from numpy import sqrt import time v=np.array([1.1]) t0=time.perf_counter() x=np.float64(v) for kk in range(1_000_000): w1=sqrt(x) dt1=time.perf_counter()-t0 print(dt1) t0=time.perf_counter() x=v for kk in range(1_000_000