Giter VIP home page Giter VIP logo

minde's Introduction

arXiv Venue

Minde

Official implementation of MINDE: Mutual Information Neural Diffusion Estimation

Requirements

List of packages (see also requirements.txt)

bmi==1.0.0
jax==0.4.25
numpy==1.26.4
pytorch_lightning==2.2.1
scikit_learn==1.4.1.post1
torch==2.2.1
torchvision==0.17.1

Usage

MI estimation is conducted in src\minde\minde_cond.py and src\minde\minde_j.py with the functions mi_compute_sigma() and mi_compute() for both the variants (See Algorithm 2 and Algorithm 4 ).

Demo

demo.ipynb is a quick jupyter notebook to launch MINDE.

Training

The training is conducted in src\libs\train_step_cond.py and src\libs\SDE.train_step.py( See Algorithm 1 and 3)

Make sure the requirements are satisfied in your environment. To run minde_c and minde_j and baselines, you can specify the number of tasks by choosing task_0 and task_n which corresponds to the number of the task in in paper.

python -m scripts.eval_minde_c --task_0 0 --task_n 2
python -m scripts.eval_minde_j --task_0 0 --task_n 2
python -m scripts.eval_baseline --task_0 0 --task_n 2

Please refer to src/consistency_tests/ to run the consistency tests. Please note that it's first required to train the autoencoder by running python -m src.consistency_tests.Autoencoder --rows 10.

minde's People

Contributors

mustaphabounoua avatar

Stargazers

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