Skip to content

vene/polylearn

 
 

Repository files navigation

polylearn

A library for factorization machines and polynomial networks for classification and regression in Python.

Github repository.

image

image

image

image

Factorization machines and polynomial networks are machine learning models that can capture feature interaction (co-occurrence) through polynomial terms. Because feature interactions can be very sparse, it's common to use low rank, factorized representations; this way, we can learn weights even for feature co-occurrences that haven't been observed at training time.

Factorization machines are popular for recommender systems, as they are a generalization of matrix completion models.

This package provides:

  • direct coordinate descent algorithm for factorization machines,
  • lifted solver for fitting polynomial networks of arbitrary degree,
  • scikit-learn-compatible API,
  • Cython implementations for computationally intensive parts.

Installation

Binary packages are not yet available.

The development version of polylearn can be installed from its git repository. In this case it is assumed that you have the git version control system, a working C++ compiler, Cython, lightning, and the numpy development libraries. In order to install the development version, type:

git clone https://github.com/scikit-learn-contrib/polylearn.git
cd polylearn
python setup.py build
sudo python setup.py install

References

The solvers implemented are introduced in1. Factorization machines are introduced in2 and polynomial networks in3.

Authors

  • Vlad Niculae, 2016-present

  1. Mathieu Blondel, Masakazu Ishihata, Akinori Fujino, Naonori Ueda. Polynomial Networks and Factorization Machines: New Insights and Efficient Training Algorithms. In: Proc. of ICML 2016. [PDF]

  2. Steffen Rendle. Factorization machines. In: Proc. of IEEE ICDM 2010. [PDF]

  3. Roi Livni, Shai Shalev-Shwartz, Ohad Shamir. On the computational efficiency of training neural networks. In: Proc. of NIPS 2014. [arXiv]

About

My fork of polylearn, a library for factorization machines and polynomial networks for classification and regression in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.5%
  • Batchfile 3.4%
  • Shell 3.3%
  • PowerShell 3.2%
  • Makefile 0.6%