Category Archives: Machine Learning

What is a Self-Organizing Map?

A few days ago, one of my colleagues asked what a self-organizing map (SOM) is. SOMs are a bit tricky to explain because there are many variations. The simplest possible type of SOM is illustrated by the diagram below. Suppose … Continue reading

Posted in Machine Learning | Leave a comment

Running the PyTorch CIFAR Example

Among my colleagues, the three most commonly used neural network libraries are TensorFlow (by itself and with Keras), CNTK, and PyTorch. I’m very familiar with Keras/TF and CNTK, but not so familiar with PyTorch. So, this morning I went to … Continue reading

Posted in Machine Learning | Leave a comment

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

Running the ML.NET Quick Start Tutorial

Before I write anything else, let me say Bravo! At last somebody (or group of people) created a quick start for a new technology, and the quick start is perfect — straight to the point and it works first time. … Continue reading

Posted in Machine Learning | Leave a comment

Accuracy, Precision, Recall, and F1 Score

If you have a binary classification problem, four fundamental metrics are accuracy, precision, recall, and F1 score. They’re best explained by example. Suppose the problem is to predict if a sports team will win or lose. There are four possible … Continue reading

Posted in 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

Introduction to DNN Image Classification Using CNTK

I wrote an article titled “Introduction to DNN Image Classification Using CNTK” in the July 2018 issue of Microsoft MSDN Magazine. See https://msdn.microsoft.com/en-us/magazine/mt847190. Image classification is a standard problem in machine learning. If you have an image (typically a photograph), … Continue reading

Posted in CNTK, Machine Learning | Leave a comment