GithubHelp home page GithubHelp logo

repulsive_ensembles's Introduction

Repulsive Deep Ensembles are Bayesian

This repo contains the code of the paper Repulsive deep ensembles are Bayesian. In the following some usage examples can be found

Sampling from synthetic distributions experiments

The experiment for the synthetic distributions can be found in 'notebooks/WGD_synthetic.ipynb'

1d regression experiments

The 1d toy regression problem can be explored. Example run:

$ python3 experiments/exp_regr.py --epochs 5000 --lr 1e-2 --n_particles 100 --size_hidden 10 --num_hidden 2 --method SGD --prior_variance 1 --annealing_steps 1000  --batch_size 32 --dataset toy_reg --ann_sch None 

2d classification experiments

The 2d classification problem can be explored. Example run:

$ python3 experiments/exp_2d_class.py --epochs 10000 --lr 1e-2 --n_particles 100 --size_hidden 10 --num_hidden 2 --method SVGD --prior_variance 1 --annealing_steps 1000 --batch_size 128 --dataset twod_gaussian --ann_sch None 

Citation

If you use our code or consider our ideas in your research project, please consider citing our paper.

@article{d2021repulsive,
  title={Repulsive Deep Ensembles are Bayesian},
  author={D'Angelo, Francesco and Fortuin, Vincent},
  journal={arXiv preprint arXiv:2106.11642},
  year={2021}
}

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.