Java version of LIBLINEAR

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

Download

liblinear-1.5-with-deps.jar (includes blas dependency)

liblinear-1.5.jar

liblinear-1.33-with-deps.jar (includes blas dependency)

liblinear-1.33.jar

News

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.33-with-deps.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:
http://github.com/bwaldvogel/liblinear-java/

Weka wrapper

There exists a Weka wrapper since version 3.6.
See the Javadoc for more Information.

Visualized hyperplane in a 3-dimensional
feature space

Visualized hyperplane in a 3-dimensional feature space