-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeWarning: invalid value encountered in cast n_zeros = np.empty(n_bins).astype(np.int64) #270
Comments
Isn't it related to this "issue"? #194 |
Thanks for your feedback. I indeed use ColumnTransformer as you suggest in #194 but this is not the issue here I think. Here, I have no problem with other columns, only those that go in my numericNAs_transformer at the optimal binning step. I just don't understand the error and how to solve it. |
I suppose the array has entries leftover from other things in released memory, of float size, that then cannot be cast into the int type? Not my expertise though... |
Hi ! |
@max-franceschi can you provide a minimal reproducible example? Or, I've made the change I suggested in #273; you could try that and see if it fixes your problem. |
I close this issue since no reproducible example was provided. Please reopen it if you have an example ready. |
I use BinningProcess in a pipeline to preprocess numeric data that contain NAs:
but when I fit this pipeline I have one or multiple errors (it's random) saying
c:\Users\XXX\Documents\DossierProjet\pvj\.venv\lib\site-packages\optbinning\binning\continuous_binning.py:912: RuntimeWarning: invalid value encountered in cast n_zeros = np.empty(n_bins).astype(np.int64)
.I cannot understand what is causing this issue. Can anyone help? Sorry that I cannot provide a reproducible example.
PS: I use a ColumnTransformer because I have other transformers (not using optbinning and working well).
The text was updated successfully, but these errors were encountered: