You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following checks fail for me using xgboost==1.0.2:
from xgboost import XGBClassifier
from sklearn.utils.estimator_checks import check_estimator
check_estimator(XGBClassifier)
This means that XGBClassifier doesn't fully comply with the sklearn estimator API, so some functionality in sklearn (like gridsearches) may not work properly or give unexpected results. See here for more info from the sklearn docs.
Is this something which has been encountered before? I'm happy to have a go at a PR for this, unless it is something which is known and has been decided intentionally (for example to support **kwargs in the classifier).
The text was updated successfully, but these errors were encountered:
It is actually not possible to pass check_estimator() check entirely, because XGBoost allows NaN as part of input whereas scikit-learn estimators do not. I tried complying with the check in #3674 but found it untenable, so I reverted it.
The following checks fail for me using xgboost==1.0.2:
This means that XGBClassifier doesn't fully comply with the sklearn estimator API, so some functionality in sklearn (like gridsearches) may not work properly or give unexpected results. See here for more info from the sklearn docs.
Is this something which has been encountered before? I'm happy to have a go at a PR for this, unless it is something which is known and has been decided intentionally (for example to support **kwargs in the classifier).
The text was updated successfully, but these errors were encountered: