1
votes

I have got here an error : "ValueError: Input contains NaN, infinity or a value too large for dtype('float64')" what dose mean ? and how I can solve this error? I used COLAB, python

I will past the code in commons

Run: np.any(np.isnan(mat))or np.all(np.isfinite(mat)) to check if the numbers are NaN or infinite. More than likely the data is formatted incorrectly. Also, always make sure to put your code in the actual post - sabeer narula