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

enable xgb_model in scklearn XGBClassifier and test. #4092

Merged
merged 5 commits into from
Jan 31, 2019

Conversation

tmitanitky
Copy link
Contributor

@tmitanitky tmitanitky commented Jan 30, 2019

Enable xgb_model parameter in XGClassifier scikit-learn API & test in one PR.

Fixes #3049.

test for xgb_model parameter in XGBClassifier API.
Enable xgb_model parameter in XGClassifier scikit-learn API
@tmitanitky tmitanitky changed the title change and test. enable xgb_model in scklearn XGBClassifier and test. Jan 30, 2019
@trivialfis
Copy link
Member

@hcho3 Have you encountered the failed lightweight tests like this one before?

@hcho3
Copy link
Collaborator

hcho3 commented Jan 31, 2019

@trivialfis I think it is a formatting issue. In line 613 of test_with_sklearn.py, we need to add one extra empty line there.

@codecov-io
Copy link

Codecov Report

Merging #4092 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4092   +/-   ##
=======================================
  Coverage   60.56%   60.56%           
=======================================
  Files         130      130           
  Lines       11756    11756           
=======================================
  Hits         7120     7120           
  Misses       4636     4636
Impacted Files Coverage Δ
python-package/xgboost/sklearn.py 86.89% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a60e224...6be8293. Read the comment docs.

Copy link
Collaborator

@hcho3 hcho3 left a comment

Choose a reason for hiding this comment

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

LGTM. I'll go ahead and merge. Thanks for your contribution.

@hcho3 hcho3 merged commit 59f868b into dmlc:master Jan 31, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XGBClassifier ignores the xgb_model parameter in scikit-learn API
4 participants