Category Archives: CNTK

Posts about the Microsoft CNTK deep learning code library

Introduction to the Microsoft CNTK v2.0 Library

I wrote an article titled “Introduction to the Microsoft CNTK v2.0 Library” in the July 2017 issue of Microsoft MSDN Magazine. See https://msdn.microsoft.com/en-us/magazine/mt784662. The CNTK library is a powerful set of functions that allow a developer to create deep neural … Continue reading

Posted in CNTK, Machine Learning | 1 Comment

Graphing Rastrigin’s Function using the Matplotlib Library

I thought I’d refresh my memory of the matplotlib library, an add-on package for Python that can create plots and graphs. I regularly use the plotting functions in R, SciLab, Excel, and Python, but using these isn’t easy or intuitive … Continue reading

Posted in CNTK

Long Short-Term Memory Network using CNTK 2.0

The Microsoft CNTK v 2.0 is a code library for deep neural networks. The library is written in C++ but you use CNTK by writing a Python program that calls into the CNTK functions. I took a look at the … Continue reading

Posted in CNTK, Machine Learning

Microsoft CNTK Library v2.0 is Released

I’ve been so busy the last few days, that I didn’t even notice that Microsoft CNTK version 2.0 deep learning library was released on June 1, 2017. Very cool! See https://docs.microsoft.com/en-us/cognitive-toolkit/. The CNTK library contains very sophisticated, very powerful, machine … Continue reading

Posted in CNTK, Machine Learning

Generating Artificial Shakespeare using a Recurrent Neural Network

A regular feed-forward neural network (FNN) accepts an input and then makes a prediction. A recurrent neural network (RNN) accepts a sequence of inputs. RNNs are very complex, very interesting, and very powerful. RNNs have been responsible for many of … Continue reading

Posted in CNTK, Machine Learning

Classifying MNIST Images using CNTK v2.0

Microsoft’s CNTK is a code library that can do advanced machine learning. Version 2.0 is in Release Candidate mode as I’m writing this blog post. I thought I’d revisit the CNTK documentation at https://www.cntk.ai/pythondocs/tutorials.html and run the MNIST image classification … Continue reading

Posted in CNTK, Machine Learning

Reading Data from a File into a NumPy Matrix

In many machine learning scenarios, you have to read training data from a text file into a matrix. When using Python with TensorFlow or CNTK, I often use the NumPy loadtxt() function. Suppose you have a text file with four … Continue reading

Posted in CNTK, Machine Learning