Code Monkey home page Code Monkey logo

simple-neural-network's Introduction

simple-neural-network

General Information

This is a Java implementation of a simple 3-layer neural network that interprets handwritten digits.

Getting Started

Git LFS

Before cloning this project, be sure to install Git Large File Storage:

  1. Go to https://git-lfs.github.com/ and install Git LFS.
  2. If you cloned the project first, then downloaded LFS, run git lfs pull in the project to pull the large files.

JAMA

This project uses the Java Matrix package known as JAMA. In order to run this program, JAMA needs to be installed.

  1. Download Jama-1.0.3.jar (http://math.nist.gov/javanumerics/jama/Jama-1.0.3.jar)
  2. Make sure that you have read permissions, and take note of the file path which will be used later.

Running the Project

Compile the project:

  • Run javac -cp <path to JAMA> *.java

Run the project:

Note: After running the command below, it may take a few minutes to load because the neural network is training itself to recognize the numbers.

  • For Linux:

    • Run java -cp <path to JAMA> main
  • For Windows:

    • Run java -cp <path to JAMA>; main
  • If the run was successful the command line should look like this:
    1

  • You will be greeted with a window that looks like this: 2

  • Draw a number on the white area on the left side: 3

  • Push submit to have your drawn number evaluated by the neural network: 4

  • Push clear to start the whole process over again.

disclaimer

Although the this program is about 95% accurate, with the testing data in its current iteration it is significantly less accurate with user drawn numbers, and is still very much a work in progress when it comes to improving the accuracy of this feature.

Tools Used

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.