Git Product home page Git Product logo

digitrecognizer's Introduction

Digit Recognizer

Resume

Digit Recognizer is a library where the algorithm Multilayer Perceptron is implemented with intent to teach a neural network learn how to recognize handwritten numbers based on MNIST dataset. It's important remember, this is a basic implementation where there's NO OPTIMIZATION at algorithm, in other words, the training is SLOW but the results are satisfactory.
The book used as support material is: HAYKIN, Simon. Redes Neurais: Princípios e Prática.

What is MNIST?

A definition according to MNIST database of handwritten digits:
Is a database of handwritten digits, has a training set of 60,000 examples, and a test set of 10,000 examples. The digits have been size-normalized and centered in a fixed-size image (28 x 28). It is a good database for people who want to try learning techniques and pattern recognition methods on real-world data while spending minimal efforts on preprocessing and formatting.

Requeriments

matplotlib mnist python-mnist cycler six kiwisolver numpy python-dateutil pytz numpy pyparsing setuptools

Setup

$ pip install -r requirements.txt

Methods & Files

A brief explanation of each method of this repository.

  • NeuralNetwork.py

    • The constructor NeuralNetwork receives as argument the number of epochs and learning rate. e.g.
    NeuralNetwork(10, 0.5)
    • Add a layer to the network with quantity of neurons passed as argument.
    def add(self, num_nodes)
    • Receives the values of inputs and outputs of training dataset.
    def train(self, inputs, targets)
    • Receives a value and return the output of neural network.
    def query(self, in_list)
    • Receives an test input and output and return the precision of network.
    def acc(self, in_list, out_list)
    • Receives a name and save the neural network at the working directory.
    def save(self, file_name)
    • Receives a path of saved neural network and load into memory.
    def load(self, path_json)
  • Image.py

    • Receives an output of mnist as array and return the corresponding value.
    def arrayToNum(array)
    • Receives an mninst array and the value generated for the network, then plots the image and print the value.
    plotNum(mnist_num, output_value)
  • LoadMNIST.py

    • Receives the path of MNIST files and return the arrays of training and testing normalizeds.
    def generateData(path)

digitrecognizer's People

Contributors

douglasjovenil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

erichmorais

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.