Skip to content

Repository of the paper of Multiobjective evolutionary pruning Deep Neural Networks with Transfer Learning for improving their performance and robustness

License

Notifications You must be signed in to change notification settings

ari-dasci/S-MOEvoPruneDeepTL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S-MOEvoPruneDeepTL

This is the official repository of Multiobjective evolutionary pruning of Deep Neural Networks with Transfer Learning for improving their performance and robustness

Code

The implementation of EvoPruneDeepTL is divided in the following folders:

  • MOEvoPruneDeepTL: the folder contains the python files for the approach.
  • ensemble: the folder contains the python files to run the ensemble.
  • heatmaps: the folder contains the python files to run the heatmaps.
  • configs: contains the configuration files for each analyzed dataset in the paper.
  • images: it contains the images of some experiments of the paper for some of the datasets.

Execution

To execute the code presented above, it is only required:

Python >= 3.6, Keras >= 2.2.4

Then, given the previous folders and a dataset, the command is the following:

python3 main.py configs/configDataset[dataset].csv configs/configGAFS.csv numberExecution

where:

  • dataset corresponds the dataset to analyze.
  • the GA configuration for the model
  • numberExecution referes to the number of execution that we are carrying out.

Datasets

The used datasets in this paper can be downloaded from:

Results

MOEvoPruneDeepTL is able to optimize to optimize the accuracy, complexity and robustness of sparse layers using a multi-objective genetic algorithm. We show some of the plots taken from our experiments:

Pareto Fronts

The Pareto front is composed of the best solutions of the 10 runs of MOEvoPruneDeepTL. The three axis show the accuracy, complexity and robustness.

Explaining most important neurons using heatmaps

We have taken the 10 most important neurons (those that appear in most solutions of the Pareto front) and we have used GradCam to explore the parts of the images that the model selects as the most relevant in order to classify the instances:

Ensemble modelling

For each quantile of mininum and maximum accuracy, we have performed the ensembe of all the models of that range to check if the ensemble performs better than the best of such interval:

About

Repository of the paper of Multiobjective evolutionary pruning Deep Neural Networks with Transfer Learning for improving their performance and robustness

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages