Tribuo
JavaCPP
Tribuo | JavaCPP | |
---|---|---|
15 | 8 | |
1,223 | 4,380 | |
0.3% | 0.7% | |
4.8 | 6.8 | |
about 1 month ago | 29 days ago | |
Java | Java | |
Apache 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Tribuo
- FLaNK Weekly 08 Jan 2024
-
Is deeplearning4j a good choice?
It seems to have been picked up by Eclipse and there is also Oracle Labs' Tribuo and Deep Java Library. All seem active, but I don't know much about any of them. I agree it's probably best to follow the community and use a more popular tool like PyTorch.
-
Stochastic gradient descent written in SQL
We built model & data provenance into our open source ML library, though it's admittedly not the W3C PROV standard. There were a few gaps in it until we built an automated reproducibility system on top of it, but now it's pretty solid for all the algorithms we implement. Unfortunately some of the things we wrap (notably TensorFlow) aren't reproducible enough due to some unfixed bugs. There's an overview of the provenance system in this reprise of the JavaOne talk I gave here https://www.youtube.com/watch?v=GXOMjq2OS_c. The library is on GitHub - https://github.com/oracle/tribuo.
-
Just want to vent a bit
Although it may be a bit more work, you can do both machine learning and AI in Java. If you are doing deep learning, you can use DeepJavaLibrary (I do work on this one at Amazon). If you are looking for other ML algorithms, I have seen Smile, Tribuo, or some around Spark.
-
Anybody here using Java for machine learning?
We've been developing Tribuo on Github for two years now, MS are very actively developing ONNX Runtime (and the Java layer is fairly thin and wrapped over the same C API they use for node.js and C#), and things like XGBoost and LibSVM have been around for many years and the Java bits are developed in tree with the rest of the code so updated along with it. Amazon have a team of people working on DJL, though you'd have to ask them what their plans are.
-
Java engineer wants to be a researcher
FWIW, Oracle actually did release a Java ML library - https://github.com/oracle/tribuo.
-
txtai 3.4 released - Build AI-powered semantic search applications in Java
Tribuo (tribuo.org, github.com/oracle/tribuo). ONNX export support is there for 2 models at the moment in main, there's a PR for factorization machines which supports ONNX export, and we plan to add another couple of models and maybe ensembles before the upcoming release. Plus I need to write a tutorial on how it all works, but you can check the tests in the meantime.
-
Hottest topics for research for JAVA software engineers
You can do ML & data science in Java (full disclosure: I help run TensorFlow-Java, I maintain ONNX Runtime's Java interface, and I'm the lead developer on Oracle Labs' Java ML library Tribuo, so I'm pretty biased). It tends not to be as favoured in research, though I've published academic ML papers which used Java implementations. People do deploy ML models quite a bit in Java in industry.
-
John Snow Labs Spark-NLP 3.1.0: Over 2600+ new models and pipelines in 200+ languages, new DistilBERT, RoBERTa, and XLM-RoBERTa transformers, support for external Transformers, and lots more!
It might be worth having a look at the ONNX Runtime Java API in addition to TF-Java, it'll let you deploy the rest of the HuggingFace pytorch models that don't have TF equivalents. I built the Java API a few years ago, and it's now a supported part of the ONNX Runtime project. We use it in Tribuo to provide one of our text feature embedding classes (BERTFeatureExtractor).
-
If it gets better w age, will java become compatible for machine learning and data science?
The IJava notebook kernel works pretty well for data science on top of Java. We use it in Tribuo to write all our tutorials, and if you've got the jar file in the right folder everything is runnable. For example, this is our intro classification tutorial - https://github.com/oracle/tribuo/blob/main/tutorials/irises-tribuo-v4.ipynb.
JavaCPP
-
Any library you would like to recommend to others as it helps you a lot? For me, mapstruct is one of them. Hopefully I would hear some other nice libraries I never try.
JavaCPP and presets for working with JNI
-
JDK 19 released
In the meantime you might want to check out JavaCPP: https://github.com/bytedeco/javacpp
-
How can I use K/N with C++?
Maybe you can use JavaCPP?
-
Does Java 18 finally have a better alternative to JNI?
Here is the code for JNI, which uses the prebuilt JavaCPP library to call the getpid function. We don't have to write all the manual C binding code and rituals as the JavaCPP library already does it.
-
JEP 419: Foreign Function and Memory API
Javacpp is the best ffi library of all https://github.com/bytedeco/javacpp
-
If it gets better w age, will java become compatible for machine learning and data science?
As for our approach, we maintain a library called javacpp: https://github.com/bytedeco/javacpp which proves a python wheel like experience where we distribute natively optimized c/c++ code (and even cuda accelerated code) as jar files on maven central. We also are able to develop with a python like experience by passing pointers around and other low level constructs directly allowing optimizations that you typically only get in c/c++.
-
CXX - Safe interop between Rust and C++
https://github.com/bytedeco/javacpp
* it maps naturally and efficiently many common features afforded by the C++ language and often considered problematic, including overloaded operators, class and function templates, callbacks through function pointers, function objects (aka functors), virtual functions and member function pointers, nested struct definitions, variable length arguments, nested namespaces, large data structures containing arbitrary cycles, virtual and multiple inheritance, passing/returning by value/reference/string/vector, anonymous unions, bit fields, exceptions, destructors and shared or unique pointers (via either try-with-resources or garbage collection), and documentation comments*
-
An article on how to use C++ for cross-platform development
I did not try myself, but for JNI maybe this could make lives easier? https://github.com/bytedeco/javacpp
What are some alternatives?
Deep Java Library (DJL) - An Engine-Agnostic Deep Learning Framework in Java
JNA - Java Native Access
Deeplearning4j - Suite of tools for deploying and training deep learning models using the JVM. Highlights include model import for keras, tensorflow, and onnx/pytorch, a modular and tiny c++ library for running math code and a java based math library on top of the core c++ library. Also includes samediff: a pytorch/tensorflow like library for running deep learning using automatic differentiation.
SWIG - SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.
oj! Algorithms - oj! Algorithms
JNR - Java Abstracted Foreign Function Layer
spark-nlp - State of the Art Natural Language Processing
Cython - The most widely used Python to C compiler
txtai - 💡 All-in-one open-source embeddings database for semantic search, LLM orchestration and language model workflows
cppimport - Import C++ files directly from Python!
grobid - A machine learning software for extracting information from scholarly documents
djinni