在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:tribuo开源软件地址:https://gitee.com/mirrors/tribuo开源软件介绍:Tribuo - A Java prediction library (v4.2)Tribuo is a machine learning library in Java thatprovides multi-class classification, regression, clustering, anomaly detectionand multi-label classification. Tribuo provides implementations of popular MLalgorithms and also wraps other libraries to provide a unified interface.Tribuo contains all the code necessary to load, featurise and transform data.Additionally, it includes the evaluation classes for all supported predictiontypes. Development is led by Oracle Labs' MachineLearning Research Group; we welcome community contributions. All trainers are configurable using theOLCUT configuration system. This allows auser to define a trainer in an xml file and repeatably build models. Exampleconfigurations for each of the supplied Trainers can be found in the configfolder of each package. These configuration files can also be written in jsonor edn by using the appropriate OLCUT configuration dependency. Models anddatasets are serializable using Java serialization. All models and evaluations include a serializable provenance object whichrecords the creation time of the model or evaluation, the identity of the dataand any transformations applied to it, as well as the hyperparameters of thetrainer. In the case of evaluations, this provenance information also includesthe specific model used. Provenance information can be extracted as JSON, orserialised directly using Java serialisation. For production deployments,provenance information can be redacted and replaced with a hash to providemodel tracking through an external system. Many Tribuo models can be exportedin ONNX format for deployment in other languages, platforms or cloud services. Tribuo runs on Java 8+, and we test on LTS versions of Java along with thelatest release. Tribuo itself is a pure Java library and is supported on allJava platforms; however, some of our interfaces require native code and arethus supported only where there is native library support. We test on x86_64architectures on Windows 10, macOS and Linux (RHEL/OL/CentOS 7+), as these aresupported platforms for the native libraries with which we interface. If you'reinterested in another platform and wish to use one of the native libraryinterfaces (ONNX Runtime, TensorFlow, and XGBoost), we recommend reaching outto the developers of those libraries. Note the reproducibility packagerequires Java 17, and as such is not part of the Documentation
TutorialsTutorial notebooks, including examples of Classification, Clustering,Regression, Anomaly Detection, TensorFlow, document classification, columnardata loading, working with externally trained models, and the configurationsystem, can be found in the tutorials. These use theIJava Jupyter notebook kernel, and workwith Java 10+, except the reproducibility tutotiral which requires Java 17. Toconvert the tutorials' code back to Java 8, in most cases simply replace the AlgorithmsGeneral predictorsTribuo includes implementations of several algorithms suitable for a wide rangeof prediction tasks:
The ensembles and K-NN use a combination function to produce their output.These combiners are prediction task specific, but the ensemble & K-NNimplementations are task agnostic. We provide voting and averaging combinersfor multi-class classification, multi-label classification and regression tasks. ClassificationTribuo has implementations or interfaces for:
Tribuo also supplies a linear chain CRF for sequence classification tasks. ThisCRF is trained via SGD using any of Tribuo's gradient optimizers. To explain classifier predictions there is an implementation of the LIMEalgorithm. Tribuo's implementation allows the mixing of text and tabular data,along with the use of any sparse model as an explainer (e.g., regression trees,lasso etc), however it does not support images. RegressionTribuo's regression algorithms are multidimensional by default. Singledimensional implementations are wrapped in order to produce multidimensionaloutput.
ClusteringTribuo includes infrastructure for clustering and also supplies twoclustering algorithm implementations. We expect to implement additionalalgorithms over time.
Anomaly DetectionTribuo offers infrastructure for anomaly detection tasks.We expect to add new implementations over time.
Multi-label classificationTribuo offers infrastructure for multi-label classification, alongwith a wrapper which converts any of Tribuo's multi-class classificationalgorithms into a multi-label classification algorithm. We expect to addmore multi-label specific implementations over time.
InterfacesIn addition to our own implementations of Machine Learning algorithms, Tribuoalso provides a common interface to popular ML tools on the JVM. If you'reinterested in contributing a new interface, open a GitHub Issue, and we candiscuss how it would fit into Tribuo. Currently we have interfaces to:
BinariesBinaries are available on Maven Central, using groupId Maven: <dependency> <groupId>org.tribuo</groupId> <artifactId>tribuo-all</artifactId> <version>4.2.0</version> <type>pom</type></dependency> or from Gradle: implementation ("org.tribuo:tribuo-all:4.2.0@pom") { transitive = true // for build.gradle (i.e., Groovy) // isTransitive = true // for build.gradle.kts (i.e., Kotlin)} The Most of Tribuo is pure Java and thus cross-platform, however some of theinterfaces link to libraries which use native code. Those interfaces(TensorFlow, ONNX Runtime and XGBoost) only run on supported platforms for therespective published binaries, and Tribuo has no control over which binariesare supplied. If you need support for a specific platform, reach out to themaintainers of those projects. As of the 4.1 release these native packages allprovide x86_64 binaries for Windows, macOS and Linux. It is also possible tocompile each package for macOS ARM64 (i.e., Apple Silicon), though there are nobinaries available on Maven Central for that platform. When developing on anARM platform you can select the Individual jars are published for each Tribuo module. It is preferable todepend only on the modules necessary for the specific project. This preventsyour code from unnecessarily pulling in large dependencies like TensorFlow. Compiling from sourceTribuo uses Apache Maven v3.5 or higher to build.Tribuo is compatible with Java 8+, and we test on LTS versions of Java alongwith the latest release. To build, simply run Repository LayoutDevelopment happens on the ContributingWe welcome contributions! See our contribution guidelines. We have a discussion mailing list[email protected], archivedhere. We're investigatingdifferent options for real time chat, check back in the future. For bugreports, feature requests or other issues, please file a GithubIssue. Security issues should follow our reporting guidelines. LicenseTribuo is licensed under the Apache 2.0 License. Release Notes:
|
请发表评论