README – Supplementary Material for [Towards Explaining Deep Neural Network Compression Through a Probabilistic Latent Space]
This supplementary material includes the Python code used to generate the experimental results in the paper. The code implements various pruning methods and computes the AP2 and AP3 metrics described in the manuscript. If you are intrerested and willing to use the code, Please find the published version of the paper at ACM TOPML Journal to cite.
-
main.py
- The main entry point for running experiments.
- Supports selecting different models, pruning methods, and pruning percentages.
-
pretrained.py
- Handles training of the original (unpruned) network.
- Also includes training routines for pruned networks.
-
pruning_methods.py
- Contains implementations of various pruning strategies used in the study.
-
modelfile.py
- Defines and loads pretrained model architectures.
-
loadingdata.py
- Loads all datasets used in the experiments.
-
generating_sample.py
- Used for generating samples required in the Monte Carlo estimation method.
-
Montecarlo.py
- Computes AP3 values using the multivariate Student-t distribution.
-
AP3_gaussian.py
- Computes AP3 values assuming a multivariate Gaussian distribution.
-
AP2_computation.py
- Computes AP2 metric.
To reproduce main results:
python main.py
Refer to main.py for all available arguments.