Python Numpy TypeError: ufunc ‘isfinite’ not supported for the input types

Your array has a dtype of object, but this should be some floating point dtype. Use e.g.

covMat = np.array(covMat, dtype=float)

to convert the dtype

Leave a Comment