Category Archives: Keras

Banknote Authentication Example Using Keras

I recently upgraded my Keras library installation to version 2.6 and so I’ve been revisiting my three basic examples: Iris Dataset (multi-class classification), Boston Housing (regression), and Banknote Authentication (binary classification). In older versions of Keras, you would install the … Continue reading

Posted in Keras | Comments Off on Banknote Authentication Example Using Keras

Computing Model Accuracy for Keras Regression Models

I recently upgraded my Keras neural network code library version to 2.6.0 and decided to revisit my three basic examples — Iris (multi-class classification), Banknote (binary classification), and Boston (regression). This morning I refactored my Boston example. Even though it … Continue reading

Posted in Keras | Comments Off on Computing Model Accuracy for Keras Regression Models

Installing Keras 2.6 on Windows and Running the Iris Example

One of the biggest challenges in machine learning is staying up to date with new releases of code libraries. I noticed that Keras released a new version 2.6 a few days ago so I figured I’d do a complete end-to-end … Continue reading

Posted in Keras | Comments Off on Installing Keras 2.6 on Windows and Running the Iris Example

Converting MNIST Binary Files to Text Files

PyTorch and Keras/TensorFlow have built-in ways to load the MNIST dataset into memory, but in many situations you just want MNIST data as simple text files. Source MNIST data files are in a proprietary binary format, so if you want … Continue reading

Posted in Keras, Machine Learning, PyTorch | Comments Off on Converting MNIST Binary Files to Text Files

Installing Keras on Windows – January 2021

I’m a big fan of both the Keras and PyTorch neural network libraries. I tend to use one library for several months, and then switch to the other for several months, depending on the project I’m working on. It’s possible, … Continue reading

Posted in Keras, Machine Learning, PyTorch | Comments Off on Installing Keras on Windows – January 2021

Installing TensorFlow 2.1.0 with Keras 2.2.4 for CPU on Windows 10 with Anaconda 5.2.0 for Python 3.6.5

Installing TensorFlow (which contains Keras) is a minor software nightmare — due mostly to version incompatibilities with the over 500 packages and over 50,000 files involved. I spent several days exploring exactly how to install TensorFlow with Keras on Windows … Continue reading

Posted in Keras, Machine Learning | 2 Comments

I Give a Talk on Binary Classification Using Keras

I recently gave a short workshop/talk at the tech company I work for on binary classification using the Keras neural network code library. The goal of a binary classification problem is to predict something that can take on one of … Continue reading

Posted in Keras, Machine Learning | 1 Comment

Neural Anomaly Detection Using Keras

I wrote an article titled “Neural Anomaly Detection Using Keras” in the March 2019 issue of Visual Studio Magazine. See https://visualstudiomagazine.com/articles/2019/03/01/neural-anomaly-detection-using-keras.aspx. Anomaly detection, also called outlier detection, is the process of finding rare items in a dataset. Examples include finding … Continue reading

Posted in Keras, Machine Learning | 3 Comments

Image Classification Using Keras

I wrote an article titled “Image Classification Using Keras” in the December 2018 issue of Visual Studio Magazine. See https://visualstudiomagazine.com/articles/2018/12/01/image-classification-keras.aspx. Keras is a neural network library. Keras actually is a layer of abstraction on top of the TensorFlow library. The … Continue reading

Posted in Keras | Comments Off on Image Classification Using Keras

Neural Network Library Training Algorithms

For people who are new to neural network libraries such as Keras, CNTK, PyTorch, and TensorFlow, selecting a training algorithm can be a bit confusing. All the libraries support the five main algorithms: stochastic gradient descent (SGD), Adagrad, Adadelta, Adam, … Continue reading

Posted in Keras, Machine Learning, Miscellaneous, PyTorch | Comments Off on Neural Network Library Training Algorithms