abhishekkrthakur / autoxgb

XGBoost + Optuna
Apache License 2.0
668 stars 88 forks source link

TypeError: __init__() got an unexpected keyword argument 'handle_unknown' #2

Closed bigcharless closed 2 years ago

bigcharless commented 2 years ago

Hey I got this error and no idea where it is from. My manual xgb model works without problems with exactly the same dataset.

I have no idea how to use github so sorry if this does not match your standards.

Capture d’écran 2021-10-31 à 17 34 28
abhishekkrthakur commented 2 years ago

It seems like you are using an older version of scikit-learn. please update to >=1.0.1

bigcharless commented 2 years ago

That was it. Well spotted, upgrading sklearn solves the problem.

abhishekkrthakur commented 2 years ago

Glad that worked!