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

[jvm-packages] Add getNumFeature method #6075

Merged
merged 4 commits into from
Sep 8, 2020

Conversation

hiliev
Copy link
Contributor

@hiliev hiliev commented Sep 1, 2020

This PR makes the functionality of XGBoosterGetNumFeature accessible from Java and Scala.

@codecov-commenter
Copy link

codecov-commenter commented Sep 1, 2020

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6075   +/-   ##
=======================================
  Coverage   78.52%   78.52%           
=======================================
  Files          12       12           
  Lines        3069     3069           
=======================================
  Hits         2410     2410           
  Misses        659      659           

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 ada964f...246159d. Read the comment docs.

@wbo4958
Copy link
Contributor

wbo4958 commented Sep 3, 2020

@hiliev some unit tests should be added

@wbo4958
Copy link
Contributor

wbo4958 commented Sep 5, 2020

LGTM, @CodingCat Could you help to review?

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.

The JNI portion looks great to me.

@trivialfis
Copy link
Member

@hcho3 Can we merge?

@hcho3
Copy link
Collaborator

hcho3 commented Sep 8, 2020

I made a simple change for better code style. We'll merge after tests pass.

@hcho3 hcho3 merged commit da61d94 into dmlc:master Sep 8, 2020
@hiliev hiliev deleted the java_get_num_features branch September 8, 2020 07:27
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.

5 participants