Receiving "ValueError: cannot convert float NaN to integer" even when there are no NaNs in dataset. #227
Replies: 7 comments
-
@PratikSaha198 Thank you for reporting this. Can you please share the inputs that you used that caused this error? This way, I can try to reproduce it on my end. Also, can you tell me what version of STUMPY you are using. You can obtain this information with:
|
Beta Was this translation helpful? Give feedback.
-
I'm experiencing the same error. I'm running version I was working through the STUMPY Basics tutorial and encountered it when plugging in my own data. The actual code that threw the error is below.
The values in
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the extra info, @imightbemary and I hope you are well! Let me take a look and see if I can reproduce it on my end. In the meantime, can you tell me what the |
Beta Was this translation helpful? Give feedback.
-
Ahhh, indeed, STUMPY is failing to detect that the
Sorry for the inconvenience/poor built-in error. I'll put a warning for this that will let the user know that only |
Beta Was this translation helpful? Give feedback.
-
No worries--that did the trick for me! Thanks for the quick response, and hope you're doing well! |
Beta Was this translation helpful? Give feedback.
-
Awesome! Since you are using Colab, you may also be interested in leveraging the much faster |
Beta Was this translation helpful? Give feedback.
-
Perfect. I'll take a look! |
Beta Was this translation helpful? Give feedback.
-
Receiving a ValueError: cannot convert float NaN to integer
on stump function :
--> 384 T_A, M_T, Σ_T = core.preprocess(T_A, m)
on preprocess function :
--> 722 T[np.isinf(T)] = np.nan
Even after rigorous checking of the dataset being fed into stumpy no nans where present or where found.
Python exception of preference in raising an exception to returning NaNs to things like sqrt(-1) and log(0.0) maybe causing the problem.
Beta Was this translation helpful? Give feedback.
All reactions