microsoft / LightGBM

A fast, distributed, high performance gradient boosting (GBT, GBDT, GBRT, GBM or MART) framework based on decision tree algorithms, used for ranking, classification and many other machine learning tasks.
https://lightgbm.readthedocs.io/en/latest/
MIT License
16.6k stars 3.83k forks source link

how to call LGBM_BoosterGetFeatureNamesSWIG from java #4760

Closed reneix closed 2 years ago

reneix commented 2 years ago

Summary

I saw this, but still have no idea about how to call LGBM_BoosterGetFeatureNamesSWIG from java can any one show some code please

method from libgbmlibJNI: public static final native long LGBM_BoosterGetFeatureNamesSWIG(long var0);

https://github.com/microsoft/LightGBM/issues/2814

Motivation

Description

    <dependency>
        <groupId>com.microsoft.ml.lightgbm</groupId>
        <artifactId>lightgbmlib</artifactId>
        <version>2.3.180</version>
    </dependency>

References

StrikerRUS commented 2 years ago

Hey @reneix ! Unfortunately, we are not maintaining any high-level JAVA package here. We simply create a jar file via SWIG wrapper: https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html#build-java-wrapper.

Some other libraries use our SWIG wrapper, so I believe their code may help you:

reneix commented 2 years ago

@StrikerRUS thanks very much, will close

github-actions[bot] commented 1 year ago

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.