Skip to content
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

XGBoost parameters deprecated #15

Open
JulioEI opened this issue Oct 22, 2021 · 1 comment
Open

XGBoost parameters deprecated #15

JulioEI opened this issue Oct 22, 2021 · 1 comment

Comments

@JulioEI
Copy link

JulioEI commented Oct 22, 2021

The parameters defined in the XGboost fit function (decoders.py line 725-730) are no longer consistent with XGBoost library. 'objective': linearregression has been deprecated in favor of 'reg:squarederror', and the parameters 'silence' is no longer a valid input. Resulting code should look like this to avoid warnings:

param = {'objective': "reg:squarederror", #for linear output
'eval_metric': "logloss", #loglikelihood loss
'max_depth': self.max_depth, #this is the only parameter we have set, it's one of the way or regularizing
'eta': self.eta,
'seed': 2925, #for reproducibility
}

Thank you!

@jglaser2
Copy link
Collaborator

Thank you for bringing this to my attention. I will update the code as soon as I have the time.

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

No branches or pull requests

2 participants