Category Archives: Keras

Displaying an MNIST Digit Yet Once Again

It seems like there are some mini-problems that I do over and over. Displaying an MNIST digit is one such mini-problem. I’m in the process of writing an article for Visual Studio Magazine ( https://visualstudiomagazine.com/Home.aspx ) and the topic is … Continue reading

Posted in Keras, Machine Learning | Leave a comment

The Keras MNIST Example using Model Instead of Sequential

Just for fun, I decided to code up the classic MNIST image recognition example using Keras. I started by doing an Internet search. I found the EXACT same code repeated over and over by multiple people. The original code comes … Continue reading

Posted in Keras, Machine Learning | 1 Comment

A Denoising Autoencoder

A neural autoencoder accepts input, compresses it, and then reconstructs the original input. One use of an autoencoder is to denoise image or document data. The idea is that during the compression stage, unnecessary information is discarded. I coded up … Continue reading

Posted in Keras, Machine Learning | 1 Comment

DNN Image Classification Using Keras

I wrote an article titled “DNN Image Classification Using Keras” in the June 2018 issue of Visual Studio Magazine. See https://visualstudiomagazine.com/articles/2018/06/21/dnn-image-classification-using-keras.aspx. The goal of image classification is to examine a picture of some kind and predict something about it. For … Continue reading

Posted in Keras, Machine Learning

Why I Prefer Keras and CNTK to PyTorch

There are many neural network code libraries. The two I like best are Microsoft CNTK and Google Keras (over TensorFlow). I am not a fan of PyTorch. There’s nothing technically wrong with PyTorch and many of my colleagues use it … Continue reading

Posted in Keras, Machine Learning | 2 Comments

Getting Reproducible Results When Using Keras

When using Keras (or similar neural network libraries such as CNTK and PyTorch) it can be surprisingly difficult to get reproducible results. Many of the Keras functions have a random component that do not have a default seed value. Here … Continue reading

Posted in Keras, Machine Learning

The Iris Dataset Example using TensorFlow

For the past several months, I’ve been mostly using the Microsoft CNTK neural network library, and the Keras wrapper library over the TensorFlow library. I haven’t used TF in several weeks. I decided I’d code up the well-known iris dataset … Continue reading

Posted in Keras, Machine Learning