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

Add explicit XGBoostRegressor objective to avoid deprecation error #887

Merged
merged 1 commit into from
Jul 11, 2019
Merged

Add explicit XGBoostRegressor objective to avoid deprecation error #887

merged 1 commit into from
Jul 11, 2019

Conversation

thunfischtoast
Copy link

What does this PR do?

Set the objective for XGBoostRegressors explicitly to reg:squarederror to prevent deprecation warnings.

Where should the reviewer start?

tpot\tpot\config\regressor.py and tpot\tpot\config\regressor_sparse.py

How should this PR be tested?

From my point of view it it not needed.

Any background context you want to provide?

What are the relevant issues?

Currently when including XGBoostRegressors in the pipeline the logs are spammed with deprecation warnings.

Related partially to problems mentioned in #877 .

Screenshots (if appropriate)

Questions:

  • Do the docs need to be updated? No
  • Does this PR add new (Python) dependencies? No

@coveralls
Copy link

Coverage Status

Coverage remained the same at 96.245% when pulling f068323 on thunfischtoast:xgboost_objective_fix into 3e2a692 on EpistasisLab:development.

@weixuanfu
Copy link
Contributor

Good catch! Thank you!

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

Successfully merging this pull request may close these issues.

None yet

3 participants