Closed gminghes closed 2 years ago
Hi, could you please share a self-contained, executable script?
I can't provide the data I'm working on, trying the same script on google colab using the fetch_20newsgroups dataset from sklearn I don't have the warning
I saw that you have something like this in your code:
"classifier__classifier__sapling_method": ["uniform", "gradient_based"],
"classifier__classifier__colsample_by_*": beta(5, 0.5),
Could you please verify that's the cause of the warning?
Also, gradient_based
is only available for gpu_hist
tree method at the moment.
I believe the cause is found.
I'm trying to do a Gridsearch with Cross Validation with xgboost and sklearn. But when I start the cross validation XGBoost issues a warning saying that some parameters are not used but, when printing the parameters used in the search those parameters issued are not there.
I'm using: Python version: 3.9.1 XGBoost version: 1.5.0
code:
Warning example:
As you can see the parameters issued are not present in the gridsearch. What can cause this behaviour?