- 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.txtcontains pip packages to be installed.- Packages listed assume no GPU availability. Use
faiss-gpuandtensorflow-gpufor use with GPU.
run_script.bashshows a simple set of commands needed to train, test and calibrate a regularized model on CIFAR-10 dataset.- Modify
regularizeandlayer_sizeflags to create different models. - Set
modeflag toplotto obtain predictions and associated NNK neighbors. Image ID's to be plotted is to be updated inmain.pyPlots obtained for model selection experiment presented in paper can be obtained by runningpython overfitting_study.pyafter setting up the appropriate paths to the models in code. - The source code contains the models trained and used for paper in
logsdirectory.
@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}
}