-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Feature] jvm-package of LightGBM #157
Comments
Here https://github.com/Microsoft/LightGBM/wiki/Features they say Spark support is planned. A XGBoost4J alternative would certainly be nice. |
Just out of curiosity, why was the issue closed even though it was labelled as call-for-contribution? Is JVM support no longer in the roadmap? |
@superbobry refer to #909 |
@superbobry I've checked in the code to generate SWIG Java wrappers to LightGBM mkdir build ; cd build The jar file is also available in maven central: If you have any suggestions for how to improve the SWIG wrappers please let me know. |
@imatiach-msft catch an exception like spark-shell --jars mmlspark-0.12.jar,lightgbmlib-2.0.120.jar traning model import com.microsoft.ml.spark.LightGBMClassifier
val lgbm = new LightGBMClassifier().setLabelCol("dep_delayed_15min").setFeaturesCol("newColumn").setRawPredictionCol("rawPrediction").setNumLeaves(5).setNumIterations(10)
val lgbmModel = lgbm.fit(tmpData) |
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
So far LightGBM does not offer a JVM integration like https://github.com/dmlc/xgboost/tree/master/jvm-packages What is the current state? Is anyone working on a JVM integration?
Maybe https://github.com/java-native-access/jna starting out with https://code.google.com/archive/p/jnaerator/ would be an interesting start.
https://github.com/Microsoft/LightGBM/blob/master/python-package/lightgbm/basic.py seems to define all the C interactions which are outlined in https://github.com/Microsoft/LightGBM/blob/master/include/LightGBM/c_api.h and could be used as input for jnaerator.
The text was updated successfully, but these errors were encountered: