GithubHelp home page GithubHelp logo

pmaf's Introduction

PMaF: Deep Declarative Layers for Principal Matrix Features

This is the official implementation of our paper on arXiv which is duplicated from ddn/apps.

If you find this paper or code useful, please cite our work as follows,

@inproceedings{Xu:ICML23w,
  author    = {Zhiwei Xu and
               Hao Wang and
               Yanbin Liu and
               Stephen Gould},
  title     = {{PMaF}: Deep Declarative Layers for Principal Matrix Features},
  booktitle = {ICML Workshop on Differentiable Almost Everything: Differentiable Relaxations, Algorithms, Operators, and Simulators},
  year      = {2023}
}

How to Use

We explore two differentiable deep declarative layers, namely least squares on sphere (LESS) and implicit eigen decomposition (IED), for learning the principal matrix features (PMaF) which refers to a single vector summarising a data matrix.

Environment

We use PyTorch 1.12.0 on a single 3090 GPU.

Least Squares on Sphere (LESS)

In LESS/test_least_squares_sphere.py, set "enable_viz_proj=True" for all figures (with 8 examples) in the paper; set "enable_viz_proj=False" for the table in the paper.

Then, run

cd LESS
python test_least_squares_sphere.py

Results will be saved in LESS/results.

Implicit Eigen Decomposition (IED)

Run IED/12_implicit_eigen_decomposition.ipynb. One can change "enable_symmetric" for the symmetricity and non-symmetricity of the input matrix.

Results (Session "Statistics of precision" in the Jupyter notebook) with figures, tables, and .csv files will be saved in IED/results.

Troubleshooting

For any enquires, please contact [email protected].

pmaf's People

Contributors

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