top of page
Antares Studio Games Icon_Small.png

The Antares Alien

Power BI   |  Game Development

  • Writer's pictureBrent Jones

Want to Build Your Own Neural Network With Python?

Updated: Feb 14, 2021

Make Your Own Neural Network

Have you ever wondered how neural networks... work? You know, they are the little boxes that show up around faces in a digital camera; They are the small programs that identify the dollar amounts on checks; They are also the tiny minds behind YouTube, Netflix, and other's recommendation system.

These systems are certainly complicated in their own right, but they all follow similar principals that all neural networks have. And you may be surprised to hear that the overarching concepts are rather simple. Basically, it's just: Inputs, Outputs, Errors and Weights.

I recently read "Make Your Own Neural Network" by Tariq Rashid. This was a fantastic read and he breaks down each concept in a really easy-to-understand way, step by step. He also makes it interesting (and funny) with visuals! At the time of this writing, you can get it on Amazon for about $4.00 for Kindle: Make Your Own Neural Network.

If you don't want to buy it, he has a blog dedicated to the book as well: He even has all the Python code available on GitHub here.

In his book, he walks you through the steps of creating a neural network that can 'read' handwritten numbers, 0-9. I'm happy to say that I was able to follow along and get the program to effectively 'learn' from the training dataset, and accurately read the number. I even tested it out on my own handwriting!

My handwritten numbers

Handwritten Numbers

I had to manually cut and resize the image to a 28 x 28 image. I did this with Gimp.

Cut and Resized 5

Then I was able to feed it into the Python script:

Neural Network's Guess 5

Neural Network's Guess 7

If you enjoy his writing, I would also recommend his other book, "Make Your Own Mandelbrot". Check out my other post here:



Make Your Own Neural Network" by Tariq Rashid:

  • Facebook
  • Twitter
  • Instagram
bottom of page