Skip to content
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

DeepGBM bug during data preprocessing #71

Open
duncanmcelfresh opened this issue Nov 9, 2022 · 0 comments
Open

DeepGBM bug during data preprocessing #71

duncanmcelfresh opened this issue Nov 9, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@duncanmcelfresh
Copy link
Collaborator

this error with alg DeepGBM was encountered with dataset openml__credit-approval__29. this occurs when running with both GPU and CPU.

Preprocess data for CatNN...
caught exception during cross-validation...
Traceback (most recent call last):
  File "/home/shared/tabzilla/TabSurvey/tabzilla_experiment.py", line 137, in __call__
    result = cross_validation(model, self.dataset, self.time_limit)
  File "/home/shared/tabzilla/TabSurvey/tabzilla_utils.py", line 246, in cross_validation
    loss_history, val_loss_history = curr_model.fit(
  File "/home/shared/tabzilla/TabSurvey/models/deepgbm.py", line 55, in fit
    train_x_cat, feature_sizes = self.ce.fit_transform(X.copy())
  File "/home/shared/tabzilla/TabSurvey/models/deepgbm_lib/preprocess/preprocessing_cat.py", line 35, in fit_transform
    out, bins = pd.qcut(X[:, idx], config.config['bins'], labels=False, retbins=True, duplicates='drop')
  File "/opt/conda/envs/torch/lib/python3.10/site-packages/pandas/core/reshape/tile.py", line 375, in qcut
    x_np = x_np[~np.isnan(x_np)]
TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
@duncanmcelfresh duncanmcelfresh added the bug Something isn't working label Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant