Loading...
Random Pearls Random Pearls New Menu
  • All Pearls
    • Random Pearls
  • Neural Networks - What's Happening? …
    • Neural Networks - What's Happening? …  (parent page)
    • Information Technology  (parent page of Neural Networks - What's Happening? …)
  • New Menu
  • Authors
  •  
  • Contact Us
  • Sign up
  • Login
    Forgot Password?
  • Follow us on
Image Back to Top Back to top
Language Preference
This website has language specific content. Here you can set the language(s) of your preference.

This setting does not affect the current page. It is used only for filtering pages in menus, preview tiles and search results.

It can be changed any time by using the login menu (if you are logged in) or by clicking the Language button on the left bottom of the page.
Log in to save your preference permanently.



If you do not set this preference, you may see a header like This page has 'language_name' content in page preview tiles.
Search
  • Navigation
  • Similar
  • Author
  • More...
You are here:
All Content / Science and Technology / Information Technology / Neural Networks - What's Happening? … / Ch. 1.1: Neural Networks - What's Happening? An Intuitive …
Table of Contents

Subscribe to Our Newsletter
Follow us by subscribing to our newsletter and navigate to the newly added content on this website directly from your inbox!
Login to subscribe to this page.
Categories  
Tags  
Author  
manisar
Author's Display Image

"Whenever you can, share. You never know who all will be able to see far away standing upon your shoulders!"

I write mainly on topics related to science and technology.

Sometimes, I create tools and animation.


Ch. 1.1: Neural Networks - What's Happening? An Intuitive Introduction to Machine Learning ©

Aug. 28, 2021

Author - manisar

MNIST: The 'Hello World' of Machine Learning Programming


The MNIST database of handwritten digits, has a training set of 60,000 examples, and a test set of 10,000 examples.

This is considered to be the Hello World of machine learning programming. That is, any learner's first machine learning model is ought to be the one that can tell the numeral digits by looking at their shape.

Here, I've used a pre-trained model to predict digits from 0 to 9 that you may draw on the canvas below.

Many thanks to Bob Hammell. For the front-end, I've built upon the code he has provided here.

There are a few things to take note of.

MNIST Draw

Draw a single digit (0-9) in the box to the left, then click Predict.

A machine learning model trained against the MNIST character dataset will classify the image. Scores for each classification label are plotted below.

A Reason to Donate

The page has no or minimal advertisement. If you want to contribute towards keeping this website running, think about donating a small amount. This helps in reducing the number of ads as well. You can decide the amount on the payment page. Thanks!

Note

  1. An interesting thing that's happening here is that the model is getting served from TensorFlow Serving container. This is a convenient and efficient way of productionalizing models, i.e. for serving pre-trained models in production environment.
    The (docker) container is lightweight, and it doesn't even need to have TensorFlow installed. Just install tensorflow_model_server, copy your model into the docker image, and get a REST API that will give predicted results!

  2. I've deliberately left the model not well-trained, so that for some cases it returns multiple results. This is just to get the feel of what's happening behind the scenes.
    You'll also get to see how by changing just a minute detail, the model classifies the shape to a different numeral. These are the things that we fine tune the model for, in production ready systems.

  3. Finally, just to ease server load, I've used a little bit of request throttling in the background. Unless you are sending hundreds of predict requests per hour, this won't be visible to you.

This is an ongoing effort which means more chapters are being added and the current content is being enhanced wherever needed.

For attribution or use in other works, please cite this book as: Manisar, "Neural Networks - What's Happening? An Intuitive Introduction to Machine Learning", SKKN Press, 2020.

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. This means you are free to copy, share and build on this book, but not to sell it.
Creative Commons License If you're interested in commercial use, please contact me. If you would like to donate, please donate to this website.

Return to Neural Networks - What's Happening? An Intuitive Introduction to Machine Learning

Tell us what you think (select text for formatting, or click )

Copyright © randompearls.com 2020

Privacy Policy