You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where self.uint32max == 4294967295 == 2**32 - 1. However, this is giving the error ValueError: high is out of bounds for int32 which indicates that numpy defaults to the wrong type. One solution is to reduce this to 2**31 - 1 (or 2**31 works since the upper bound is not inclusive for randint). Another solution is to specify the type:
Lastly, as a somewhat side remark, numpy now recommends a different random number generator interface, such as through np.random.default_rng(). One difficulty is that currently noisyopt wants to set the seeds of the global numpy RNG, but any functions using the new RNG system will be unaffected. Instead, noisyopt would have to pass a Generator object to the optimization function for it to use.
The text was updated successfully, but these errors were encountered:
There appears to be a compatibility issue with numpy on Windows. On line 352 of main.py, there is:
Where
self.uint32max == 4294967295 == 2**32 - 1
. However, this is giving the errorValueError: high is out of bounds for int32
which indicates thatnumpy
defaults to the wrong type. One solution is to reduce this to2**31 - 1
(or2**31
works since the upper bound is not inclusive for randint). Another solution is to specify the type:Lastly, as a somewhat side remark,
numpy
now recommends a different random number generator interface, such as throughnp.random.default_rng()
. One difficulty is that currentlynoisyopt
wants to set the seeds of the globalnumpy
RNG, but any functions using the new RNG system will be unaffected. Instead,noisyopt
would have to pass aGenerator
object to the optimization function for it to use.The text was updated successfully, but these errors were encountered: