Code Monkey home page Code Monkey logo

mnist's Introduction

MNIST

This digit recognition program is written by C++, and it is a simple multilayer neural network classification system that uses mini-batch gradient descent to execute learning process during training stage. Please follow the instructions to compile the program and execute the program:

  1. Compile The Program:
    before running the digit classification program, we have to compile the program correctly. Please use the following command to compile this program:

g++ -std=c++11 main.cpp NeuralNetwork.cpp -o file_name

For example:

g++ -std=c++11 main.cpp NeuralNetwork.cpp -o output

  1. Execute The Program:
    after compiling the program, we are able to apply two different commands to execute different functions. In the folder, there are two pre-trained weights, so users can directly utilize these two weight’s models to test classification accuracy. Alternatively, users can run training function in the program to generate new weights and apply new weights to do testing stage.

2.1: The command for training neural network:

./output run [N_neurons LR max_iter size_mini-batch]

For example:
./output run 128 0.3 30 10

2.2: The command for testing neural network:

./output testing [N_neurons]

Ex:
./output testing 128

where N_neurons: the number of neurons in the hidden layer.
LR: learning rate.
max_iter: maximum iteration
size_mini-batch: the size of mini-batch

mnist's People

Watchers

Li-Yun (James) Wang 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.