- Non parametric, polytope interpolation framework for use with deep learning models
Python source code for paper: DeepNNK: Explaining deep models and their generalization using polytope interpolation
The code is tested for python3.6. Use with python2 will require some minor updates in the packages installed and source code.
requirements.txt
contains pip packages to be installed.- Packages listed assume no GPU availability. Use
faiss-gpu
andtensorflow-gpu
for use with GPU.
run_script.bash
shows a simple set of commands needed to train, test and calibrate a regularized model on CIFAR-10 dataset.- Modify
regularize
andlayer_size
flags to create different models. - Set
mode
flag toplot
to obtain predictions and associated NNK neighbors. Image ID's to be plotted is to be updated inmain.py
Plots obtained for model selection experiment presented in paper can be obtained by runningpython overfitting_study.py
after setting up the appropriate paths to the models in code. - The source code contains the models trained and used for paper in
logs
directory.
@article{shekkizhar2020deepnnk,
title={DeepNNK: Explaining deep models and their generalization using polytope interpolation},
author={Shekkizhar, Sarath and Ortega, Antonio},
journal={arXiv preprint arXiv:2007.10505},
year={2020}
}