Git Product home page Git Product logo

cifar-10's Introduction

Cifar-10 neural-net classifiers

The CIFAR-10 classifiers of various neural networks. Datasets from cifar-10 datasets.

Requirements

tqdm

chainer v1.5.1

Other packages around chainer.

Usage

Data acquisition and shaping

$ wget https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz
$ gzip -d cifar-10-python.tar.gz
$ tar -xf cifar-10-python.tar
$ python data.py

Training

Training can be done in various algorithms (optimizer = {Adam, AdaGrad, SGD}, with/without batch-normalization, dropout rate, different data augumentation methods) and neural architectures {Fully-connected neural network, several Convolutional neural networks}.

In either case, if you use GPU, add option -g 0 or --gpu 0. If you want to export result figures, -p on or --plot on, write log, -l on or --log on, and save models -s on or --save on.

Simple neural network

$ python train_nn.py -d on

"Simple" means fully-connected. To know the model, see model_nn.py. -d on option makes input data normalized and augumented. To know detail, see datahandler.py.

The test accuracy should be around 60%.

Convolutional neural network

$ python train_cnn.py -d on

You can change models by options -m alexor -m alexbn, which represents with/without batch-normalization layers. To know the model, see model_cnn.py.

The test accuracy should be around 85%.

For better accuracy...?

$ python train_cnn_crop.py -d on

By cropping the images, input data is augumented further and the prediction accuracy will be even better! The test accuracy should be...

Author

shiba24, Jan, 2016

cifar-10's People

Contributors

shiba24 avatar

Stargazers

cheahkhing avatar Oğuzhan ÇİFTÇİ avatar

Watchers

Takashi Abe avatar James Cloos avatar Oğuzhan ÇİFTÇİ avatar  avatar Chaithra DM 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.