-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Conversation
Codecov Report
@@ 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.
|
@hiliev some unit tests should be added |
LGTM, @CodingCat Could you help to review? |
There was a problem hiding this 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.
jvm-packages/xgboost4j/src/main/scala/ml/dmlc/xgboost4j/scala/Booster.scala
Outdated
Show resolved
Hide resolved
@hcho3 Can we merge? |
I made a simple change for better code style. We'll merge after tests pass. |
This PR makes the functionality of XGBoosterGetNumFeature accessible from Java and Scala.