Giter Site home page Giter Site logo

simu96 / hyperbolic-busemann-learning Goto Github PK

View Code? Open in Web Editor NEW

This project forked from minaghadimiatigh/hyperbolic-busemann-learning

0.0 0.0 0.0 7.91 MB

Hyperbolic Busemann Learning with Ideal Prototypes, NeurIPS2021

Home Page: https://minaghadimi.github.io/papers/HBL/index.html

Python 45.49% Jupyter Notebook 54.51%

hyperbolic-busemann-learning's Introduction

Hyperbolic Busemann Learning with Ideal Prototypes

This is the implementation of paper Hyperbolic Busemann Learning with Ideal Prototypes (NeurIPS2021).

Figure 1

How to use?

Ideal Prototype Learning

As the first step, you should learn ideal prototypes for the classes in the ultimate task. To run the code and learn the prototypes, the number of classes and output dimension should be specified.

To learn prototypes with 50 output dimensionality and 100 classes, use the code,

python prototype_learning.py -d 50 -c 100

The output will be prototypes-50d-100c.npy saved in prototypes directory.

Main code

Once the prototypes are ready, it's time to run the main code. To run HBL.py, the parameters in the argparser should be specified,

python HBL.py --data_name cifar100 -e 1110 -s 128 -r adam -l 0.0005 -c 0.00005 --mult 0.1 --datadir data/ --resdir runs/output_dir/cifar/ --hpnfile prototypes/prototypes-50d-100c.npy --logdir test --do_decay True --drop1 1000 --drop2 1100 --seed 100

Further explanation will be added soon.

Citation

Please consider citing this work using this BibTex entry,

@inproceedings{atigh2021hyperbolic,
  title={Hyperbolic Busemann Learning with Ideal Prototypes},
  author={Atigh, Mina Ghadimi and Keller-Ressel, Martin and Mettes, Pascal},
  booktitle={Thirty-Fifth Conference on Neural Information Processing Systems},
  year={2021}
}

hyperbolic-busemann-learning's People

Contributors

minaghadimiatigh avatar simu96 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.