Coder Social home page Coder Social logo

bigredt / nn_pred_surf Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6.22 MB

Visualize effects of neural net architectural choices on 2D data

Home Page: http://ahumaninmachinesworld.blogspot.in/2016/12/visualizing-effects-of-neural-network.html

Python 100.00%
neural-network 2d-data visualization

nn_pred_surf's Introduction

Easily visualize the effects of neural network architectural choices on 2D data

The code allows you to easily visualize the prediction surface of any neural network for any 2D data. This was written partially for generating results for one of my blog posts. But in addition I have tried to make it easy to try out various tweaks, either your own or one of the many published on arXiv, for improving training and data efficiency of neural networks.

Example

The following result compares the effect of commonly used activations on learning 4 different decision functions. effect_of_activations

Dependencies

Setup

Install all the above dependencies except pyAIUtils. Clone the repository and run the following commands inside the created directory to setup pyAIUtils which is used as submodule.

git submodule init
git submodule update

After running these commands, make sure the pyAIUtils directory is created and has aiutils directory inside it.

Code Overview

See nn_pred_surf/experiments directory for example scripts. Each of these scripts uses the Constants class to store network specifications. An object of this class is passed on to run_experiments.run() which samples data, creates a tensorflow computation graph, trains the network and produces a decision surface.

Usage

Feel free to use the code and any material on the blog as long as you attribute it correctly. For publications you may use the following BibTex citation

@misc{gupta2016nnpredsurf,
  author = {Gupta, Tanmay},
  title = {Visualizing the effects of neural network architectural choices},
  year = {2016},
  howpublished = {http://ahumaninmachinesworld.blogspot.in/2016/12/visualizing-effects-of-neural-network.html}
}

Have fun visualizing!

nn_pred_surf's People

Contributors

bigredt avatar

Stargazers

 avatar

Watchers

 avatar

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.