Coder Social home page Coder Social logo

sa_dnn's Introduction

SA_DNN

This is the repository for the following AAAI-19 paper:

Shu, H., and Zhu, H. (2019) Sensitivity Analysis of Deep Neural Networks. The Thirty-Third AAAI Conference on Artificial Intelligence (AAAI-19), pp. 4943-4950 [DOI]

Also see the talk slides.

We also proposed a method, called mFI-PSO, for Adversarial Image Generation based on the Manifold-based First-order Influence (mFI) measure introduced in the paper. See https://github.com/shu-hai/mFI-PSO for details.

Instructions:

Use CIFAR10_sample.py and MNIST_sample.py to obtain the CIFAR10 and MNIST datasets.

ResNet50.py and DenseNet121.py are the two networks, which are called to be trained by CIFAR10_ResNet50.py, CIFAR10_DenseNet121.py, MNIST_ResNet50.py or MNIST_DenseNet121.py.

Then for the two benchmark datasets, take CIFAR10 and DenseNet121 for example. Run CIFAR10_DenseNet121_IF_setupX.py for Setup X in the paper, where X=1,2,3,4. To summarize the results, first use the R code CIFAR10_DenseNet121_IF_setupX_result.R, and then use the python code CIFAR10_DenseNet121_IF_setupX_result.py for the plots.

sa_dnn's People

Contributors

shu-hai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sa_dnn's Issues

How to change the objective function?

Dear Dr. Hai Shu,

I would like to use your metric in my future projects.
But I cannot figure out where the objective function (e.g. Cross Entropy) is implemented in the codes. It seems to me that the objective function is already implemented in grad_f objects [as nabla_f(omega0) regarding your original article]. Can you help me clear up my confusion?

Thank you very much

Best regards

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.