dmlc / tl2cgen

TL2cgen (TreeLite 2 C GENerator) is a model compiler for decision tree models
https://tl2cgen.readthedocs.io/en/latest/
Apache License 2.0
17 stars 6 forks source link

Maven Coordinates #12

Closed chris-smith-zocdoc closed 5 months ago

chris-smith-zocdoc commented 4 years ago

Is treelite4j available on maven central?

I'm interesting in using the java bindings but didn't see it published.

https://search.maven.org/search?q=treelite

hcho3 commented 4 years ago

No not yet. It will be available with 1.0 release (#111)

lyuhuafeng commented 4 years ago

I was also trying to use treelite4j. Does "not on maven central yet" mean the treelite4j is still not available for public use? If treelite4j is not available... I managed to use treelite.Model.compile() to generate the java code. Seems this is the only way to allow java to use treeliet? Thanks. (And happy new year!)

hcho3 commented 3 years ago

I have not yet had sufficient bandwidth to upload Treelite to Maven Central. For now, please build and install XGBoost4J locally.

thvasilo commented 1 year ago

To clarify for anyone who ends up here through search: For now, the only way to use treelite4j is to run mvn package under ./treelite/runtime/java/treelite4j/ where the pom.xml file lies. That will create treelite4j-2.4.0.jar under .treelite/runtime/java/treelite4j/target which you can then import into your project, for example in IDEA or just add it to your javac classpath using javac -cp path/to/treelite4j-2.4.0.jar

hcho3 commented 1 year ago

Hi everyone, apologies for the late update. I've had not had any time to maintain Treelite4J (now TL2cgen4J), and it's still not available on Maven Central.

I am looking for someone who wants to take over the Java package (or TL2cgen in general). If you are interested, reach out to me at chohyu01@cs.washington.edu.