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: |
|
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
|
|
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 |
|
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 |
|
No worries--that did the trick for me! Thanks for the quick response, and hope you're doing well! |
|
Awesome! Since you are using Colab, you may also be interested in leveraging the much faster |
|
Perfect. I'll take a look! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions