Giter Club home page Giter Club logo

neural-network's Introduction

NeuralNetworkFromScratch

OCR application using neural networks developed in Python from scratch, with no ML libraries. This is a project written in romanian language. Feel free to edit my code and create an english version.

To run this project follow the next steps:

  1. Run "EditorSabloaneAntrenament.py" and create one or more patterns for the Neural Network to learn. It should create a file named "sabloane antrenament.txt" which contains the pixel values (1/0) of the training patterns. Generally, the more patterns you add, the better the NN trains.

  2. Run "ReteaNeuronalaAntrenament.py" which is the training app for the NN. It should create a file named "ponderi.txt" which contains the weights after the training finishes. The NN works by training until the gradient descends down to a certain threshold. Feel free to change the threshold or run it for a fixed number of epochs.

  3. Run "EditorSabloaneTest.py" and choose a test pattern for the NN to make a prediction. It should create a file named "sabloane test.txt" which contains the pixel values (1/0) of the test pattern. This app works by making a test per run. If you try to add another pattern over the existing one, the app will overwrite the old pattern with the new one. If you want, you can edit the app to allow more than one prediction, but you have to edit the app at the next step too, so it will be able to make a prediction on more than one pattern.

  4. Run "ReteaNeuronalaTest.py", the test app for the NN. This app works by getting the state of each pixel from the "sabloane text.txt" file and calculate the activations of the output neurons, thus returning the values for each one of them. It prints the highest activation which is likely the correct label for the OCR project, whereas the NN uses 10 labels for each number from 0-9.

Thank you for using my OCR project!

neural-network's People

Contributors

valentinpopescu98 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.