Closed
Description
In [1]: np.random.uniform(low=0, high=np.inf)
---------------------------------------------------------------------------
OverflowError Traceback (most recent call last)
<ipython-input-1-0b134c5277a5> in <module>()
----> 1 np.random.uniform(low=0, high=np.inf)
mtrand.pyx in mtrand.RandomState.uniform (numpy/random/mtrand/mtrand.c:17319)()
OverflowError: Range exceeds valid bounds
In [2]: np.random.uniform(low=[0], high=[np.inf])
Out[2]: array([ inf])
In [3]: np.random.uniform(low=[-np.inf], high=[np.inf])
Out[3]: array([ nan])
Metadata
Metadata
Assignees
Labels
No labels