Code Monkey home page Code Monkey logo

dropout-feature-ranking's Introduction

Dropout Feature Ranking for Deep Learning Model

ArXiv | BibTex

This is the code for reproducing the paper result. We propose a new method to gain feature importance from deep neural network.

Run

  1. Requirements:

    • Install python3
    • Install package pandas, seaborn, glmnet_python
    • Install pytorch 0.3 version (It does not support 0.4)
    • If you want to replicate the results of real datasets, download the datasets and put it under folder exp/DFRdatasets/data/.
  2. Running examples:

    • Running simulation
    python mlp_predict.py --dataset InteractionSimulation --rank_func nn_rank:0.1 nn_rank:0.5 nn_rank:1 nn_rank:0.05 marginal_rank rf_rank zero_rank shuffle_rank random_rank dfs_rank enet_rank lasso_rank
    python mlp_predict.py --dataset NoInteractionSimulation --rank_func nn_rank:0.1 nn_rank:0.5 nn_rank:1 nn_rank:0.05 marginal_rank rf_rank zero_rank shuffle_rank random_rank dfs_rank enet_rank lasso_rank
    
    • Support2 with zeroing out the feature
    python mlp_predict.py --dataset support2 --identifier 0111 --rank_func all_rank --test_func nn_test_zero
    • MiniBooNE
    python mlp_predict.py --dataset MiniBooNE --identifier 0111 \
    --rank_func nn_rank:0.1 nn_rank:0.01 marginal_rank rf_rank zero_rank shuffle_rank \
    random_rank dfs_rank enet_rank lasso_rank --test_func nn_test_zero
    • Year MSD
    python mlp_predict.py --dataset YearMSD --identifier 0111 \
    --rank_func nn_rank:1 marginal_rank rf_rank zero_rank shuffle_rank \
    random_rank dfs_rank enet_rank lasso_rank nn_rank:0.1  --test_func nn_test_retrain

    See notebooks for the further analysis and reproducing figures

  3. Further questions?

License

CC 4.0 Attribution-NonCommercial International

The software is for educaitonal and academic research purpose only.

Citing

@article{chang2017dropout,
  title={Dropout Feature Ranking for Deep Learning Models},
  author={Chang, Chun-Hao and Rampasek, Ladislav and Goldenberg, Anna},
  journal={arXiv preprint arXiv:1712.08645},
  year={2017}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.