Giter VIP home page Giter VIP logo

givens-factorization's Introduction

Approximating Orthogonal Matrices with Effective Givens Factorization

This is an implementation of the algorithms analyzed in our ICML 2019 paper:

Approximating Orthogonal Matrices with Effective Givens Factorization (Thomas Frerix, Joan Bruna; ICML 2019)

The core algorithm is written in C++/CUDA and interfaces with python through pybind11.

Installation

  1. Make sure you have a running Python 3 (tested with Python 3.7) ecosytem, e.g. through conda, and an Nvidia GPU (tested with CUDA 9.0 on a Titan X).
  2. Install the python dependencies via pip install -r pip_requirements.txt.
  3. Install CUB (tested with 1.8.0) and Eigen3 (tested with 3.2).
  4. Specify the environment variables CUB_INCLUDE_DIR to the CUB library and PYBIND_INDLUDE_DIR to the python library path of your installation that includes pybind11 (installed as a python package).
  5. Run cmake . and make to compile the code.
  6. Run the end-to-end tests by calling pytest test_givens_gpu.py -v -s.

Example

The file example.py contains an example of factorizing an orthogonal matrix with various algorithms, which are explained and discussed in the paper.

givens-factorization's People

Contributors

tfrerix 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.