All Projects → XavierXiao → Likelihood-Regret

XavierXiao / Likelihood-Regret

Licence: MIT License
Official implementation for Likelihood Regret: An Out-of-Distribution Detection Score For Variational Auto-encoder at NeurIPS 2020

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Likelihood-Regret

ddd-example-ecommerce
Domain-driven design example in Java with Spring framework
Stars: ✭ 73 (+231.82%)
Mutual labels:  ood
python-ood
💠 Essential object oriented design (python, pytest, travisCI)
Stars: ✭ 38 (+72.73%)
Mutual labels:  ood
System-Design
System design and Object Oriented Design (OOD) related interview problems and solutions.
Stars: ✭ 77 (+250%)
Mutual labels:  ood
Learning Oop In Php
A collection of resources to learn object-oriented programming and related concepts for PHP developers.
Stars: ✭ 2,359 (+10622.73%)
Mutual labels:  ood
Ood Principles In Swift
💎 The Principles of OOD (SOLID) based on Uncle Bob articles.
Stars: ✭ 1,710 (+7672.73%)
Mutual labels:  ood

Likelihood-Regret

Official implementation of Likelihood Regret: An Out-of-Distribution Detection Score For Variational Auto-encoder at NeurIPS 2020.

Training

To train the VAEs, use appropriate arguments and run this command:

python train_pixel.py

Evaluation

To evaluate likelihood regret's OOD detection performance, run

python compute_LR.py

To evaluate likelihood ratio, run

python test_likelihood_ratio.py

To evaluate input complexity, run

python test_inputcomplexity.py

Above commands will save the numpy arrays containing the OOD scores for in-distribution and OOD samples in specific location, and to compute aucroc score, run

python aucroc.py

Pre-trained Models

You can download pretrained VAE models on FMNIST and CIFAR-10 here.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].