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

Don't pass callbacks=None to XGBoostSklearnEstimator._fit #1322

Merged
merged 5 commits into from
Aug 6, 2024

Conversation

Atry
Copy link
Contributor

@Atry Atry commented Jul 23, 2024

Why are these changes needed?

The original implmentation would pass callbacks=None to XGBoostSklearnEstimator._fit and eventually lead to a TypeError of XGBModel.fit() got an unexpected keyword argument 'callbacks'. This PR instead does not pass the callbacks=None parameter to avoid the error.

Related issue number

This PR fixes #1314

Checks

The original implmentation would pass `callbacks=None` to `XGBoostSklearnEstimator._fit` and eventually lead to a `TypeError` of `XGBModel.fit() got an unexpected keyword argument 'callbacks'`. This PR instead does not pass the `callbacks=None` parameter to avoid the error.
@Atry Atry marked this pull request as ready for review July 23, 2024 06:10
Copy link
Collaborator

@thinkall thinkall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Atry for the PR! Could you please also update the setup.py to allow xgboost>=2.0.0?

@Atry
Copy link
Contributor Author

Atry commented Jul 27, 2024

@microsoft-github-policy-service agree

@Atry
Copy link
Contributor Author

Atry commented Jul 27, 2024

Thank you @Atry for the PR! Could you please also update the setup.py to allow xgboost>=2.0.0?

Sure! Updated.

Copy link
Collaborator

@thinkall thinkall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@thinkall thinkall enabled auto-merge August 1, 2024 03:16
@thinkall thinkall added this pull request to the merge queue Aug 6, 2024
Merged via the queue into microsoft:main with commit 8e63dd4 Aug 6, 2024
16 checks passed
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.

TypeError: fit() got an unexpected keyword argument 'callbacks' with xgboost 2.1.0
2 participants