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

ImportError: cannot import name 'EarlyStopException' from 'xgboost.core'[Bug] #11409

Closed
WuZheng326 opened this issue May 23, 2022 · 4 comments
Closed

Comments

@WuZheng326
Copy link

When I was running the AutoSchedule demo:

https://tvm.apache.org/docs/how_to/tune_with_autoscheduler/tune_network_cuda.html#sphx-glr-how-to-tune-with-autoscheduler-tune-network-cuda-py

I met this bug: ImportError: cannot import name 'EarlyStopException' from 'xgboost.core'

My TVM version is 0.9 dev, and Xgboost version is 1.6.1

What is wrong with the AutoSchedule?

@schell
Copy link
Contributor

schell commented May 26, 2022

I just ran into this as well. My guess is that xgboost==1.6.1 has removed EarlyStopException.

@WuZheng326
Copy link
Author

WuZheng326 commented May 26, 2022 via email

@WuZheng326
Copy link
Author

I just ran into this as well. My guess is that xgboost==1.6.1 has removed EarlyStopException.

yes, I reinstall xgboost 1.5.0, and find that works
https://discuss.tvm.apache.org/t/auto-scheduler-ansor-xgboost-cost-model-import-error/12635

@schell
Copy link
Contributor

schell commented May 26, 2022

Yes, I can confirm that xgboost<1.6.1 fixes this.

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