Tutorials

Get Started with Notebooks

New to Tribuo? Start out by following the Classification Tutorial to learn the ropes. It introduces the ins and outs of training and testing a model as well as loading and saving the model for future use. To learn more about the basic features of Tribuo, se the menu on the left to navigate through the other tutorials.

All the tutorials for Tribuo are available as Jupyter notebooks. While Jupyter does not natively support Java, you can add Java support via the IJava kernel. Our tutorial notebooks make use of Java's var keyword, so you'll need to use at least Java 10 with IJava (and Java 17 or newer for the model card and reproducibility tutorials). Tribuo itself supports Java 8 and newer.

Adding Tribuo to your Build

Ready to move on beyond notebooks and starting using Tribuo in a project? Tribuo is divided up into many modules that allow you to load only the parts of the library that you need. This is useful both in terms of limiting the size and scope of the jars you use, but it also allows you to, for example, exclude the pieces of Tribuo that rely on native dependencies.

While you're still getting familiar with Tribuo though, the easiest way to get started is to use the tribuo-all dependency which references all the pieces of Tribuo and the dependencies on third-party components.

Maven

<dependency>
    <groupId>org.tribuo</groupId>
    <artifactId>tribuo-all</artifactId>
    <version>4.3.1</version>
    <type>pom</type>
</dependency>

Gradle

implementation ("org.tribuo:tribuo-all:4.3.1@pom") {
    transitive = true      // for build.gradle (Groovy)
    // isTransitive = true // for build.gradle.kts (Kotlin)
}