Library for factorization machines
C++ C Perl Makefile
Switch branches/tags
Nothing to show
Clone or download


Library for factorization machines



Factorization machines (FM) are a generic approach that allows to mimic most factorization models by feature engineering. This way, factorization machines combine the generality of feature engineering with the superiority of factorization models in estimating interactions between categorical variables of large domain. libFM is a software implementation for factorization machines that features stochastic gradient descent (SGD) and alternating least squares (ALS) optimization as well as Bayesian inference using Markov Chain Monte Carlo (MCMC).


libFM has been tested with the GNU compiler collection and GNU make. libFM and the tools can be compiled with

make all


Please see the libFM 1.4.2 manual for details about how to use libFM. If you have questions, please visit the forum.