Coder Social home page Coder Social logo

konstantinklepikov / polylearn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scikit-learn-contrib/polylearn

1.0 1.0 0.0 3.23 MB

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

Home Page: http://contrib.scikit-learn.org/polylearn/

License: BSD 2-Clause "Simplified" License

Makefile 0.59% Python 89.47% PowerShell 3.21% Batchfile 3.40% Shell 3.32%

polylearn's Introduction

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:

  • coordinate descent algorithm for fitting factorization machines of degree 2 or 3,
  • coordinate descent algorithm 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 a working C++ compiler.

  1. Obtain the sources by:

    git clone https://github.com/scikit-learn-contrib/polylearn.git

or, if git is unavailable, download as a ZIP from GitHub.

  1. Install the dependencies:

    # via pip
    
    pip install numpy scipy scikit-learn nose
    pip install sklearn-contrib-lightning
    
    
    # via conda
    
    conda install numpy scipy scikit-learn nose
    conda install -c conda-forge sklearn-contrib-lightning
  2. Build and install polylearn:

    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]

polylearn's People

Contributors

mblondel avatar vene avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.