GithubHelp home page GithubHelp logo

poscar / tensorflow-js-intro Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 0.0 6.97 MB

Simple introduction to TensorFlow.js using the MNIST dataset.

License: Apache License 2.0

JavaScript 88.90% HTML 11.10%

tensorflow-js-intro's Introduction

tensorflow-js-intro

Introduction to TensorFlow.js by building a web app that is able to recognize hand drawn digits in a Canvas element.

In this introduction we will:

  1. Create a simple TensorFlow.js project.
  2. Load a subset of the MNIST digit dataset.
  3. Create a model that is able to predict the numeric value of a handwritten digit.
  4. Train the model.
  5. Allow users to draw digits using the Canvas.
  6. Use our model to recognize user drawn digits.

Slides and Presentation

This project was created for the Fullstack meetup in NYC on June 14th, 2018. You can find the companion slides here.

The presentation given at the meetup is on YouTube here. Apologies in advance for the bad audio.

Resources

The following resources were used to create this project:

  • TensorFlow.js MNIST Tutorial: Steps to build and train the DNN to recognize digits. NOTE that we were heavily inspired by this tutorial, but did not exactly follow it.
  • MNIST Digits: Subset of the MNIST dataset for easy consumption within JavaScript.
  • MNIST Digits data loader: To be used with the tool above for generating larger MNIST data subsets.

Further Work

If you would like to experiment further, I challenge you to improve the performance of the model by modifying the hyperparameters (e.g. structure, learning rate, etc...) of the neural network or training the model over a larger MNIST subset.

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.