-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
dask scikit-learn API: TypeError: fit() got an unexpected keyword argument 'callbacks' #6468
Comments
It is already supported: xgboost/tests/python/test_with_dask.py Lines 670 to 671 in fb56da5
|
Is the scikit-learn API not supporting it? I'm using latest 1.3.0 master. |
Not yet, currently, you'd need to use |
Also, Optuna's pruning callback function doesn't yet work with xgboost.dask: #6323. We recently overhauled the callback interface, specifically to support Dask interface, and the Optuna's pruning callback should be updated to use the new callback interface (it's using the old interface). |
Ok, so even if I tried to use native API for Optuna, it would fail some other way. |
That's right, until #6323 is resolved. |
Is the Optuna calback code complicated? I'll have to check it out. |
I will submit a PR on optuna next week. We haven't done any test on using dask interface with optuna. |
Awesome, thanks @trivialfis ! I suppose no changes are required for the dask-optuna package https://github.com/jrbourbeau/dask-optuna |
Closed by #6471 |
Is there planned support for dask to have callbacks? When using things like Optuna I hit:
@trivialfis
The text was updated successfully, but these errors were encountered: