July 2017
Beginner to intermediate
715 pages
17h 3m
English
Java Statistical Analysis Tool (JSAT) is another Java library which contains a lot of implementations of commonly-used machine learning algorithms. You can check the full list of implemented models at https://github.com/EdwardRaff/JSAT/wiki/Algorithms.
To include JSAT to a Java project, add the following snippet to pom:
<dependency> <groupId>com.edwardraff</groupId> <artifactId>JSAT</artifactId> <version>0.0.5</version> </dependency>
Unlike Smile models, which require just an array of doubles with the feature information, JSAT requires a special wrapper class for data. If we have an array, it is converted to the JSAT representation like this:
double[][] X = ... // data int[] y = ... // labels // change to more classes for more ...