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

User defined callbacks are not supported for GPU #1792

Open
Enpen opened this issue Aug 2, 2021 · 9 comments
Open

User defined callbacks are not supported for GPU #1792

Enpen opened this issue Aug 2, 2021 · 9 comments

Comments

@Enpen
Copy link

Enpen commented Aug 2, 2021

Problem:
I trained a model on GPU for a dataset. However,when i use clf.fit(X,y,callbacks=[mycallback1], i got an error as below:
<_catboost.CatBoostError: User defined loss functions, metrics and callbacks are not supported for GPU>. So how can i use my own callbacks when i train with GPU? Looking forward to your reply.

catboost version: 0.26

@Innixma
Copy link

Innixma commented Oct 28, 2021

Ran into this same issue with catboost v1.0

This makes writing code that works with both CPU and GPU very difficult, particularly when I am trying to guarantee that catboost returns within a given time limit (via callbacks).

@gaceladri
Copy link

Hello ✋ do you have any idea if callbacks would be supported in the future in catboost? thanks!

@Evgueni-Petrov-aka-espetrov
Copy link
Contributor

@gaceladri ❤️
we hope to support user-defined metrics (high confidence) and loss-functions (less confidence) on gpu within few months from now
we thank you so much for using catboost 😻

@Innixma
Copy link

Innixma commented Jan 16, 2023

@Evgueni-Petrov-aka-espetrov That is amazing to hear!!

@lmsanch
Copy link

lmsanch commented Apr 10, 2023

Any updates on this? It would be great to have pruning callbacks while training n GPU

@Evgueni-Petrov-aka-espetrov
Copy link
Contributor

this is paused currently ☹️

@kgrushin
Copy link

Would be really nice to see this feature in the next versions of catboost

@EvanZ
Copy link

EvanZ commented Feb 7, 2024

Any chance this is ever going to happen? What is the workaround?

@Evgueni-Petrov-aka-espetrov
Copy link
Contributor

Any chance this is ever going to happen? What is the workaround?

a BS graduating this summer in SE has this a his thesis topic

formally speaking, workaround is using cpu

@EvanZ

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

8 participants