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

Exception when training with sparse data on GPU #1175

Closed
annaveronika opened this issue Feb 12, 2020 · 1 comment
Closed

Exception when training with sparse data on GPU #1175

annaveronika opened this issue Feb 12, 2020 · 1 comment
Assignees

Comments

@annaveronika
Copy link
Contributor

@temakahap

Hello!

I am trying to fit catboost classifier with sparse matrix'es and gpu type.
And i have this error:
CatBoostError: util/generic/maybe.h:15: TMaybe is empty

Code:
model.fit(train_bootstraped, predict_bootsraped, self.cat_features,
eval_set = (self.X_validation, self.y_validation))empty

Shapes and sums:
print (train_bootstraped.shape, predict_bootsraped.shape, predict_bootsraped.sum()
self.X_validation.shape, self.y_validation.shape)
(7467, 214) (7467,) 2489 (25143, 214) (25143,)

Stackoverflow can't have this error(
Can you pls give an advice how ti avoid this erros?

Model params:
{'iterations': 1500,
'learning_rate': 0.01,
'depth': 6,
'custom_loss':'AUC',
'early_stopping_rounds': 100,
'use_best_model': True,
'task_type': 'GPU'}

@andrey-khropov andrey-khropov self-assigned this Feb 12, 2020
@andrey-khropov andrey-khropov changed the title Not clear exception when training with sparse data on GPU Exception when training with sparse data on GPU Feb 12, 2020
@andrey-khropov
Copy link
Member

This issue is not actually GPU specific (only sparse data-specific).
It has been fixed in the master branch and the fix will be included in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants