Giter Site home page Giter Site logo

neural_net_newbies's Introduction

Neural_Net_Newbies

Repository of machine learning python packages' code examples to build, train and run a neural net on MNIST data. A small code sample is used in my PyCon 2015 presentation and the rest is for reference afterwards under lib/slide_code.py.

The MNIST Dataset is the "hello world" of neural nets, and the link is the original source about the dataset.

Note: All examples assume supervised learning.

Theano

The MNIST example in this repo is based off this link with modifications.

  • Data is located at this link.
  • Additional tutorial at this link.

Run code from command line:

  python lib/theano_mnist.py

Setup:

  pip install theano

General Reference for more information about the package.

Graphlab/Dato:

MNIST sample tutorial can be found at this link. This machine learning library is built off of CXXNet.

Run code from command line:

  python lib/graphlab_mnist.py

Setup:

  pip install graphlab-create 
  • Add product key to environment variable or config file

General Reference for more information about the package.

OpenDeep

The MNIST example in this repo is based off this link. This deep learning library is built off of Theano.

Run from command line:

  python lib/opendeep_mnist.py

Setup:

General Reference for more information about the package.

Lasagne

The MNIST example in this repo is based off this link with modifications. This machine learning library is built off of Theano.

Run from command line:

  python lib/lasagne_mnist.py

Setup:

General Reference for more information about the package.

PyLearn2

MNIST example in this repo is based off this link with modifications. Built off of Theano and requires a yaml file to config neural net structure and optimization method.

Run from command line:

     python lib/pylearn2_mnist.py

Setup:

    git clone git://github.com/lisa-lab/pylearn2.git
    
    cd pylearn2 && python setup.py develop

    OR 

    cd pylearn2 && python setup.py develop --user

General Reference for more information.

Scikit-Learn

MNIST example in this repo is based off this link with modifications. This library uses an RBM model and they are combining the RBM with Logistict Regression to create the model that runs predictions.

Run from command line:

  python sklearn_mnist.py

Setup:

pip install -U numpy scipy scikit-learn

General Reference for more information.

Other:

Most setup references assume python and pip installed. Check documentation for other options especially if setting up on GPUs.

If you want to add to this repo, send me a PR.

neural_net_newbies's People

Contributors

nyghtowl avatar mbeissinger avatar

Watchers

James Cloos avatar Vikas Kumar 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.