Code Monkey home page Code Monkey logo

macau's Introduction

Macau-cpp - Bayesian Factorization with Side Information

Highly optimized and parallelized methods for Bayesian Factorization, including BPMF and Macau. The package uses optimized OpenMP/C++ code with a Cython wrapper to factorize large scale matrices. Macau method is able to perform matrix and tensor factorization while incorporating high-dimensional side information to the factorization.

Examples

For examples see documentation.

Installation

To install Macau it possible to use pre-compiled binaries or compile it from source.

Source installation on Ubuntu

# install dependencies:
sudo apt-get install python-pip python-numpy python-scipy python-pandas cython
sudo apt-get install libopenblas-dev autoconf gfortran

# checkout and install Macau
git clone https://github.com/jaak-s/macau.git
cd macau
python setup.py install --user

Installing with pip

If you have openblas installed (package libopenblas-dev in Ubuntu) available and gcc and g++ installed, then following steps install macau:

git clone https://github.com/jaak-s/macau.git
cd macau
pip install .

Instead of pip install . one can use

python setup.py install --user

Source installation on Mac

# install dependencies
pip install numpy
pip install scipy
pip install pandas
pip install cython
# install brew (http://brew.sh/)
brew install homebrew/core/openblas
brew install gcc

# checkout and install Macau
git clone https://github.com/jaak-s/macau.git
cd macau
CC=g++-5 CXX=g++-5 python setup.py install

Docker

Macau is also available using Docker image at stadius/macau.

Without mounting a local directory the docker can be executed by

docker run -it --rm -p 8888:8888 stadius/macau

To mount a local directory add -v ~/my_data_dir:/data where ~/my_data_dir is on the local system and /data will be the folder in the container:

docker run -v ~/my_data_dir:/data -it --rm -p 8888:8888 stadius/macau

Binary installion on Ubuntu

There is a plan to support Python wheel packages. Currently, we do not have one built yet.

Contributors

  • Jaak Simm (Macau C++ version, Cython wrapper, Macau MPI version, Tensor factorization)
  • Adam Arany (Probit noise model)
  • Tom Vander Aa (OpenMP optimized BPMF)
  • Tom Haber (Original BPMF code)

macau's People

Contributors

jaak-s avatar adamgld avatar fujirock avatar tvandera 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.