Category Archives: Keras

MNIST Image Classification Using Keras 2.8 on Windows 11

One of my standard neural network examples is image classification on the MNIST dataset. The full MNIST (modified National Institure of Standards and Technology) dataset has 60,000 images for training and 10,000 images for testing. Each image is a 28 … Continue reading

Posted in Keras, PAW | Leave a comment

Regression (Employee Income) Using Keras 2.8 on Windows 11

One of my standard neural network examples is to predict employee income from sex, age, city, and job-type. Predicting a single numeric value is usually called a regression problem. (Note: “logistic regression” predicts a single numeric probability value between 0.0 … Continue reading

Posted in Keras, PAW | Leave a comment

Autoencoder Anomaly Detection Using Keras 2.8 on Windows 11

Every few months I revisit my standard neural network examples to make sure that changes in the underlying code libraries (PyTorch, Keras/TensorFlow) haven’t introduced a breaking change(s). One of my standard examples is autoencoder anomaly detection. The idea is to … Continue reading

Posted in Keras, PAW | Leave a comment

The Boston Area Housing Problem Using Keras 2.8 on Windows 11

For the past few days I’ve been revisiting some of my standard neural network problems. One of these is the Boston Area House Price problem. The data has 506 data items. Each data item represents a town or village near … Continue reading

Posted in Keras | Leave a comment

Preparing a Machine for the 2022 Predictive Analytics World All-Day Workshop

I will be presenting an all-day, hands-on machine learning workshop at the 2022 Predictive Analytics World (PAW) and Machine Learning Week (MLW) events, on Monday, June 20, in Las Vegas. See https://www.predictiveanalyticsworld.com/machinelearningweek/. The PAW / MLW events have lots of … Continue reading

Posted in Keras, Machine Learning, PAW, PyTorch | Leave a comment

Installing Keras 2.8.0 on Windows 10/11

Keras is a neural network code library. Keras relies on another library called TensorFlow. If you install TensorFlow you also install Keras. Note: In older versions, you had to install TensorFlow and Keras separately. Prerequisites: A machine with a relatively … Continue reading

Posted in Keras, PAW | 1 Comment

Installing PyTorch 1.10.0 on Windows 10/11

PyTorch is a neural network code library. Prerequisites: A machine with a relatively modern CPU (no older than 8 years old) running Windows 10 or 11, with Python 3.7.6 installed via the Anaconda 2020.02 distribution. See https://jamesmccaffrey.wordpress.com/2022/05/10/installing-anaconda3-2020-02-with-python-3-7-6-on-windows-10-11/. You must be … Continue reading

Posted in Keras, PAW, PyTorch | 2 Comments

Installing Anaconda3 2020.02 with Python 3.7.6 on Windows 10/11

Anaconda is a collection of software packages that contains a base Python engine plus over 500 compatible Python packages. You need to install Anaconda Python before you can install the PyTorch or Keras/TensorFlow neural network code libraries. See the links … Continue reading

Posted in Keras, Machine Learning, PAW, PyTorch | 1 Comment

Binary Classification Using Keras 2.8 on Windows 11

I recently revisited one of my standard PyTorch binary classification problems to make sure it worked on my current PyTorch (1.10) and Windows (11) versions. For completeness, I implemented the same neural network architecture using the same data, with Keras … Continue reading

Posted in Keras, PAW | Leave a comment

Predicting Employee Job Type Using Keras 2.8 on Windows 11

One of my standard examples for neural network classification is to predict employee job type (mgmt, supp, tech) from sex, age, city (anaheim, boulder, concord), and income. The data is artificial. I redo the example every few months to make … Continue reading

Posted in Keras, PAW | Leave a comment