Code Monkey home page Code Monkey logo

myonn's Introduction

TL:DR

Improved implementation of Tariq Rashid's "Make Your Own Neural Network". Cleaned up code. MNIST data is retrieved automatically for you. Program traverses over range of network parameters to search for model with highest accuracy.

WHY?

Tariq Rashid provided an excellent introduction to neural networks. Yet, the provided code is not clean - a disgrace to the beauty of python. (This is due to the book written for people with zero coding experience.) I therefore could not resist the urge to tidy up the project.

WHAT ELSE?

The current most accurate model will be saved to a database file. At this version the model is just stored and not utilized. Feel free to find your own uses for it. Also all parameters like learning rate and number of hidden nodes are logged. You may use those to understand how different parameters influence accuracy. The debug mode can be activated by setting the DEBUG variable to True at the beginning of the code. In debug mode only a single training run with a smaller sample size is conducted. Additionally the finished model will be backqueried to present you the perception pattern for each digit.

HOW?

  1. Clone repo:

git clone [email protected]:bfelder/MYONN myonn/

  1. Go to folder:

cd myonn/myonn/

  1. Install requirements:

pip install -r requirements.txt

  1. Start program:

python3 myonn.py

  1. On first run MNIST data is retrieved automatically for you. :-)

STARS ✰✰✰✰✰

If you liked this repo, please star it. Because other users will more easily find it in the search results then. Thank you!

myonn's People

Contributors

bfelder avatar dependabot[bot] avatar jaba17 avatar pykong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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