liblinear-java

liblinear-java provides a Java version of LIBLINEAR for linear classification and regression models.

github.com/bwaldvogel/liblinear-java
liblinear-java homepage screenshot

About liblinear-java

liblinear-java is a Java port of LIBLINEAR for large-scale regularized linear classification, regression and outlier detection. It stays close to the original C++ source code and provides Linear.train, Linear.predict and Linear.predictProbability for programmatic use, with Java 11 or later as the only requirement.

Use follows the original LIBLINEAR documentation, including LIBSVM data format with feature indexes starting from 1. The default solver can be slow when data is not scaled or C is large, and beginners with small datasets are advised to consider LIBSVM first.

Key features

  • Java version of LIBLINEAR for linear classification and regression
  • Handles L2- and L1-regularized logistic regression and SVM classification
  • Handles L2- and L1-loss support vector regression tasks
  • Includes one-class support vector machine for outlier detection
  • Offers Linear.train, Linear.predict and Linear.predictProbability methods
  • Requires Java 11 or later; distributed as Maven artifact version 2.44
Best for: Java developers who need LIBLINEAR linear models in Java applications.
Good for
  • Only requires Java 11 or later
  • Stays close to upstream C++ source for maintenance and code review
  • Supports multiple regularized linear classification and regression solvers
Watch out for
  • Default solver may be slow if data is not scaled or C is large
  • Beginners with small datasets are advised to consider LIBSVM first
  • Feature index must start from 1, not 0

liblinear-java at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

liblinear-java alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Developer Tools

Well-known listings from the same topic.

All 423

liblinear-java FAQ

What do I need to use liblinear-java?
Java 11 or later is the only requirement.
What are the main methods for using it in code?
Linear.train(...), Linear.predict(...) and Linear.predictProbability(...).
When should I use LIBLINEAR instead of LIBSVM?
For large data with many features, such as document classification, where linear models perform similarly without kernels.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing