Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

CV works #28

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

CV works #28

wants to merge 4 commits into from

Conversation

TomAugspurger
Copy link
Member

@TomAugspurger TomAugspurger commented Aug 31, 2018

Closes #21
Closes #31

not dask.is_dask_collection(data) or
not dask.is_dask_collection(labels)):
dtrain = xgb.DMatrix(data, labels, **dmatrix_kwargs)
return xgb.train(params, dtrain, **kwargs)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also raise here and point the user to xgb.train with an informative message.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still debugging this, but it seems like in a Randomized/GridSearchCV context we can end up with a concrete ndarray here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think https://github.com/dask/dask-xgboost/pull/28/files#r214392082 left out the important bit of information that GridSearchCV can pass a concrete ndarary here, even if you start with a dask array.

@TomAugspurger TomAugspurger changed the title CV workers CV works Nov 7, 2018
@astrojuanlu
Copy link

@TomAugspurger any chance you can rebase this on current master (just in case the errors have magically disappeared?) - I can't promise I will deep dive into them but having the possibility to SSH into the Circle CI worker is an asset.

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

Successfully merging this pull request may close these issues.

AttributeError when using GridSearchCV with XGBClassifier Using RandomizedCV with xgboost
3 participants