Java version of LIBLINEAR

This is a Java version of the original LIBLINEAR C++ sources.

News

Downloads

https://github.com/bwaldvogel/liblinear-java/downloads

Maven

Liblinear is available via the official Maven repository since version 1.8.
<dependency>
	<groupId>de.bwaldvogel</groupId>
	<artifactId>liblinear</artifactId>
	<version>1.8</version>
</dependency>

Documentation

API docs

Source Xref

Maven site

Usage

The usage is pretty similar to the usage of the C++ version. It can be used as Java library or standalone.

Example:
# java -cp liblinear-1.8.jar liblinear.Train -v 5 rcv1_train.binary
time: 2612 ms
correct: 19653
Cross Validation Accuracy = 97.0902%

Source code & development

The source code is hosted and maintained on github:
https://github.com/bwaldvogel/liblinear-java

Weka wrapper

There exists a Weka wrapper since version 3.6.
See https://github.com/bwaldvogel/liblinear-weka for more Information.

Visualized hyperplane in a 3-dimensional
feature space

Visualized hyperplane in a 3-dimensional feature space