Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
midsterx 899a697183
Merge branch 'master' of https://dagshub.com/ShaileshSridhar2403/Re-CDEP
2 years ago
59a68b9e9b
Corrected dvc remote path
2 years ago
d877fc5b8d
Segregated data into different dvc files
2 years ago
58de0284ae
Fixed bugs in the evaluate function of Text experiment
2 years ago
58de0284ae
Fixed bugs in the evaluate function of Text experiment
2 years ago
60c19aca34
Added models
2 years ago
src
a8a4b58ea3
fixed bug in the unpool function
2 years ago
73b8f33840
Commented out the plot_model call due to errorprone installation of underlying packages
2 years ago
58de0284ae
Fixed bugs in the evaluate function of Text experiment
2 years ago
a7e8ebc26d
Initialize DVC
2 years ago
d877fc5b8d
Segregated data into different dvc files
2 years ago
14700674cc
Update 'README.md'
2 years ago
5b96c667d4
Added ISIC experiment for r=1
2 years ago
5b96c667d4
Added ISIC experiment for r=1
2 years ago
1d4d9c7a1f
Added missing colour package
2 years ago
Storage Buckets
Data Pipeline
Legend
DVC Managed File
Git Managed File
Metric
Stage File
External File

README.md

You have to be logged in to leave a comment. Sign In

Deep Explanation Penalization (CDEP)

Python TensorFlow Keras

This repository is a reimplementation of deep-explanation-penalization in Python 3.8 and TensorFlow 2.4 .

This work was born out of a submission to the ML reproducibility Challenge, Spring 2021 edition. Please check out the Wiki for more details on the experiments carried out and more.

Getting Started

Installation of Packages

Create a virtual environment and install all python packages using

pip install requirements.txt

Isic-skin-cancer

Navigate into the ISIC skin cancer directory

cd isic-skin-cancer/ISIC-skin-cancer/ 

Dataset Download and Preprocessing

Download The dataset along with metadata and preprocess

python 00_download_metadata.py
python 01_download_images_multiproc.py
python 02_sort_images.py

Calculate CD features after propagating through the main body of VGG-16

python 03_calculate_pretrained.py

Training and Validation

python train_CDEP.py

Stanford Sentiment Dataset

Navigate into the text directory

cd text/

Dataset Download and Preprocessing

Download the Glove embeddings

python download_glove.py

Create the random variant of the SST dataset

python 00_make_decoy.py 

Create the gender variant of the SST dataset

python 01_make_gender.py

Create the biased variant of the SST dataset

python 03_make_bias.py

Training and Validation

python train_all.py

Trains and records the results of all experiments

DecoyMNIST

Navigate to the DecoyMNIST directory

cd mnist/DecoyMNIST/

Download and process the dataset

python 00_make_data.py

Train on the dataset

python 01_train_all.py
Tip!

Press p or to see the previous file or, n or to see the next file

About

This repository is a reimplementation of deep-explanation-penalization in Python 3.8 and TensorFlow 2.4 .

This work was born out of a submission to the ML reproducibility Challenge, Spring 2021 edition. Please check out the Wiki for more details on the experiments carried out and more.

Publications
View on arXiv  
Collaborators 3

Comments

Loading...