pyitlib icon indicating copy to clipboard operation
pyitlib copied to clipboard

Issues with current version of Numpy

Open priamai opened this issue 2 years ago • 0 comments

Running the example on python 3.9 and Numpy Version: 1.21.5

import numpy as np
from pyitlib import discrete_random_variable as drv

drv.entropy(['a', 'b', 'a', 'b'], base=np.exp(1))

TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

priamai avatar Mar 06 '22 18:03 priamai