compound-density-networks
compound-density-networks copied to clipboard
Implementation of: Kristiadi, Agustinus, and Asja Fischer. "Predictive Uncertainty Quantification with Compound Density Networks." (2019).
Compound Density Networks
General information
- The codes are meant to be run on a GPU.
- The default arguments for each codes are already set so that running the codes without argument will replicate the results shown in the paper.
Instruction
- Install the dependencies contained in
requirements.txt. Remember to install pytorch with GPU support, manually if necessary. - Create new folder called
dataand runextract_features_cifar10.py. - Run the code on a GPU, e.g.:
CUDA_VISIBLE_DEVICES=0 python ml_cdn_mnist.py. - Trained models will be saved in
models/{dataset}directory. - Experiment results will be saved in
results/{dataset}directory in Numpy format, i.e. usenp.loadto load the results.