CNTK/Tutorials/CNTK_103C_MNIST_MultiLayerP...

792 строки
66 KiB
Plaintext

{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"from IPython.display import Image"
]
},
{
"cell_type": "markdown",
"metadata": {
"nbpresent": {
"id": "29b9bd1d-766f-4422-ad96-de0accc1ce58"
}
},
"source": [
"# CNTK 103: Part C - Multi Layer Perceptron with MNIST\n",
"\n",
"We assume that you have successfully completed CNTK 103 Part A.\n",
"\n",
"In this tutorial, we train a multi-layer perceptron on MNIST data. This notebook provides the recipe using Python APIs. If you are looking for this example in BrainScript, please look [here](https://github.com/Microsoft/CNTK/tree/release/2.5/Examples/Image/GettingStarted)\n",
"\n",
"## Introduction\n",
"\n",
"**Problem** \n",
"As in CNTK 103B, we will continue to work on the same problem of recognizing digits in MNIST data. The MNIST data comprises hand-written digits with little background noise."
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<img src=\"http://3.bp.blogspot.com/_UpN7DfJA0j4/TJtUBWPk0SI/AAAAAAAAABY/oWPMtmqJn3k/s1600/mnist_originals.png\" width=\"200\" height=\"200\"/>"
],
"text/plain": [
"<IPython.core.display.Image object>"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Figure 1\n",
"Image(url= \"http://3.bp.blogspot.com/_UpN7DfJA0j4/TJtUBWPk0SI/AAAAAAAAABY/oWPMtmqJn3k/s1600/mnist_originals.png\", width=200, height=200)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Goal**:\n",
"Our goal is to train a classifier that will identify the digits in the MNIST dataset. Additionally, we aspire to achieve lower error rate with Multi-layer perceptron compared to Multi-class logistic regression. \n",
"\n",
"**Approach**:\n",
"The same 5 stages we have used in the previous tutorial are applicable: Data reading, Data preprocessing, Creating a model, Learning the model parameters and Evaluating (a.k.a. testing/prediction) the model. \n",
"- Data reading: We will use the CNTK Text reader \n",
"- Data preprocessing: Covered in part A (suggested extension section). \n",
"\n",
"There is a high overlap with CNTK 102. Though this tutorial we adapt the same model to work on MNIST data with 10 classes instead of the 2 classes we used in CNTK 102.\n"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": true,
"nbpresent": {
"id": "138d1a78-02e2-4bd6-a20e-07b83f303563"
}
},
"outputs": [],
"source": [
"from __future__ import print_function # Use a function definition from future version (say 3.x from 2.7 interpreter)\n",
"import matplotlib.image as mpimg\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import sys\n",
"import os\n",
"\n",
"import cntk as C\n",
"import cntk.tests.test_utils\n",
"cntk.tests.test_utils.set_device_from_pytest_env() # (only needed for our build system)\n",
"C.cntk_py.set_fixed_random_seed(1) # fix a random seed for CNTK components\n",
"\n",
"%matplotlib inline"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Data reading\n",
"\n",
"In this section, we will read the data generated in CNTK 103 Part A."
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Define the data dimensions\n",
"input_dim = 784\n",
"num_output_classes = 10"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"In this tutorial we are using the MNIST data you have downloaded using CNTK_103A_MNIST_DataLoader notebook. The dataset has 60,000 training images and 10,000 test images with each image being 28 x 28 pixels. Thus the number of features is equal to 784 (= 28 x 28 pixels), 1 per pixel. The variable `num_output_classes` is set to 10 corresponding to the number of digits (0-9) in the dataset.\n",
"\n",
"The data is in the following format:\n",
"\n",
" |labels 0 0 0 0 0 0 0 1 0 0 |features 0 0 0 0 ... \n",
" (784 integers each representing a pixel)\n",
" \n",
"In this tutorial we are going to use the image pixels corresponding the integer stream named \"features\". We define a `create_reader` function to read the training and test data using the [CTF deserializer](https://cntk.ai/pythondocs/cntk.io.html?highlight=ctfdeserializer#cntk.io.CTFDeserializer). The labels are [1-hot encoded](https://en.wikipedia.org/wiki/One-hot). Refer to CNTK 103A tutorial for data format visualizations. \n"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Read a CTF formatted text (as mentioned above) using the CTF deserializer from a file\n",
"def create_reader(path, is_training, input_dim, num_label_classes):\n",
" return C.io.MinibatchSource(C.io.CTFDeserializer(path, C.io.StreamDefs(\n",
" labels = C.io.StreamDef(field='labels', shape=num_label_classes, is_sparse=False),\n",
" features = C.io.StreamDef(field='features', shape=input_dim, is_sparse=False)\n",
" )), randomize = is_training, max_sweeps = C.io.INFINITELY_REPEAT if is_training else 1)"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Data directory is ..\\Examples\\Image\\DataSets\\MNIST\n"
]
}
],
"source": [
"# Ensure the training and test data is generated and available for this tutorial.\n",
"# We search in two locations in the toolkit for the cached MNIST data set.\n",
"data_found = False\n",
"for data_dir in [os.path.join(\"..\", \"Examples\", \"Image\", \"DataSets\", \"MNIST\"),\n",
" os.path.join(\"data\", \"MNIST\")]:\n",
" train_file = os.path.join(data_dir, \"Train-28x28_cntk_text.txt\")\n",
" test_file = os.path.join(data_dir, \"Test-28x28_cntk_text.txt\")\n",
" if os.path.isfile(train_file) and os.path.isfile(test_file):\n",
" data_found = True\n",
" break\n",
"if not data_found:\n",
" raise ValueError(\"Please generate the data by completing CNTK 103 Part A\")\n",
"print(\"Data directory is {0}\".format(data_dir))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Model Creation\n",
"\n",
"Our multi-layer perceptron will be relatively simple with 2 hidden layers (`num_hidden_layers`). The number of nodes in the hidden layer being a parameter specified by `hidden_layers_dim`. The figure below illustrates the entire model we will use in this tutorial in the context of MNIST data.\n",
"\n",
"![](http://cntk.ai/jup/cntk103c_MNIST_MLP.png)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If you are not familiar with the terms *hidden layer* and *number of hidden layers*, please refer back to CNTK 102 tutorial.\n",
"\n",
"Each Dense layer (as illustrated below) shows the input dimensions, output dimensions and activation function that layer uses. Specifically, the layer below shows: input dimension = 784 (1 dimension for each input pixel), output dimension = 400 (number of hidden nodes, a parameter specified by the user) and activation function being [relu](https://cntk.ai/pythondocs/cntk.ops.html?highlight=relu#cntk.ops.relu).\n",
"\n",
"![](http://www.cntk.ai/jup/cntk103c_MNIST_dense.png)\n",
"\n",
"In this model we have 2 dense layer called the hidden layers each with an activation function of `relu` and one output layer with no activation. \n",
"\n",
"The output dimension (a.k.a. number of hidden nodes) in the 2 hidden layer is set to 400 and 200 in the illustration above. In the code below we keep both layers to have the same number of hidden nodes (set to 400). The number of hidden layers is 2. Fill in the following values:\n",
"- num_hidden_layers\n",
"- hidden_layers_dim\n",
"\n",
"The final output layer emits a vector of 10 values. Since we will be using softmax to normalize the output of the model we do not use an activation function in this layer. The softmax operation comes bundled with the [loss function](https://cntk.ai/pythondocs/cntk.losses.html) we will be using later in this tutorial."
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"num_hidden_layers = 2\n",
"hidden_layers_dim = 400"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Network input and output: \n",
"- **input** variable (a key CNTK concept): \n",
">An **input** variable is a container in which we fill different observations in this case image pixels during model learning (a.k.a.training) and model evaluation (a.k.a. testing). Thus, the shape of the `input` must match the shape of the data that will be provided. For example, when data are images each of height 10 pixels and width 5 pixels, the input feature dimension will be 50 (representing the total number of image pixels). More on data and their dimensions to appear in separate tutorials.\n",
"\n",
"\n",
"**Question** What is the input dimension of your chosen model? This is fundamental to our understanding of variables in a network or model representation in CNTK.\n"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"input = C.input_variable(input_dim)\n",
"label = C.input_variable(num_output_classes)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Multi-layer Perceptron setup\n",
"\n",
"The cell below is a direct translation of the illustration of the model shown above."
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"def create_model(features):\n",
" with C.layers.default_options(init = C.layers.glorot_uniform(), activation = C.ops.relu):\n",
" h = features\n",
" for _ in range(num_hidden_layers):\n",
" h = C.layers.Dense(hidden_layers_dim)(h)\n",
" r = C.layers.Dense(num_output_classes, activation = None)(h)\n",
" return r\n",
" \n",
"z = create_model(input)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"`z` will be used to represent the output of a network.\n",
"\n",
"We introduced sigmoid function in CNTK 102, in this tutorial you should try different activation functions in the hidden layer. You may choose to do this right away and take a peek into the performance later in the tutorial or run the preset tutorial and then choose to perform the suggested activity.\n",
"\n",
"\n",
"** Suggested Activity **\n",
"- Record the training error you get with `sigmoid` as the activation function\n",
"- Now change to `relu` as the activation function and see if you can improve your training error\n",
"\n",
"*Quiz*: Name some of the different supported activation functions. Which activation function gives the least training error?"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Scale the input to 0-1 range by dividing each pixel by 255.\n",
"z = create_model(input/255.0)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Learning model parameters\n",
"\n",
"Same as the previous tutorial, we use the `softmax` function to map the accumulated evidences or activations to a probability distribution over the classes (Details of the [softmax function](http://cntk.ai/pythondocs/cntk.ops.html#cntk.ops.softmax))."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Training\n",
"\n",
"Similar to CNTK 102, we minimize the cross-entropy between the label and predicted probability by the network. If this terminology sounds strange to you, please refer to the tutorial CNTK 102 for a refresher. "
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"loss = C.cross_entropy_with_softmax(z, label)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Evaluation\n",
"\n",
"In order to evaluate the classification, one can compare the output of the network which for each observation emits a vector of evidences (can be converted into probabilities using `softmax` functions) with dimension equal to number of classes."
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"label_error = C.classification_error(z, label)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Configure training\n",
"\n",
"The trainer strives to reduce the `loss` function by different optimization approaches, [Stochastic Gradient Descent](https://en.wikipedia.org/wiki/Stochastic_gradient_descent) (`sgd`) being a basic one. Typically, one would start with random initialization of the model parameters. The `sgd` optimizer would calculate the `loss` or error between the predicted label against the corresponding ground-truth label and using [gradient-decent](http://www.statisticsviews.com/details/feature/5722691/Getting-to-the-Bottom-of-Regression-with-Gradient-Descent.html) generate a new set model parameters in a single iteration. \n",
"\n",
"The aforementioned model parameter update using a single observation at a time is attractive since it does not require the entire data set (all observation) to be loaded in memory and also requires gradient computation over fewer datapoints, thus allowing for training on large data sets. However, the updates generated using a single observation sample at a time can vary wildly between iterations. An intermediate ground is to load a small set of observations and use an average of the `loss` or error from that set to update the model parameters. This subset is called a *minibatch*.\n",
"\n",
"With minibatches we often sample observation from the larger training dataset. We repeat the process of model parameters update using different combination of training samples and over a period of time minimize the `loss` (and the error). When the incremental error rates are no longer changing significantly or after a preset number of maximum minibatches to train, we claim that our model is trained.\n",
"\n",
"One of the key parameter for [optimization](https://en.wikipedia.org/wiki/Category:Convex_optimization) is called the `learning_rate`. For now, we can think of it as a scaling factor that modulates how much we change the parameters in any iteration. We will be covering more details in later tutorial. \n",
"With this information, we are ready to create our trainer. "
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Instantiate the trainer object to drive the model training\n",
"learning_rate = 0.2\n",
"lr_schedule = C.learning_parameter_schedule(learning_rate)\n",
"learner = C.sgd(z.parameters, lr_schedule)\n",
"trainer = C.Trainer(z, (loss, label_error), [learner])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"First let us create some helper functions that will be needed to visualize different functions associated with training."
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Define a utility function to compute the moving average sum.\n",
"# A more efficient implementation is possible with np.cumsum() function\n",
"def moving_average(a, w=5):\n",
" if len(a) < w:\n",
" return a[:] # Need to send a copy of the array\n",
" return [val if idx < w else sum(a[(idx-w):idx])/w for idx, val in enumerate(a)]\n",
"\n",
"\n",
"# Defines a utility that prints the training progress\n",
"def print_training_progress(trainer, mb, frequency, verbose=1):\n",
" training_loss = \"NA\"\n",
" eval_error = \"NA\"\n",
"\n",
" if mb%frequency == 0:\n",
" training_loss = trainer.previous_minibatch_loss_average\n",
" eval_error = trainer.previous_minibatch_evaluation_average\n",
" if verbose: \n",
" print (\"Minibatch: {0}, Loss: {1:.4f}, Error: {2:.2f}%\".format(mb, training_loss, eval_error*100))\n",
" \n",
" return mb, training_loss, eval_error"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Run the trainer\n",
"\n",
"We are now ready to train our fully connected neural net. We want to decide what data we need to feed into the training engine.\n",
"\n",
"In this example, each iteration of the optimizer will work on `minibatch_size` sized samples. We would like to train on all 60000 observations. Additionally we will make multiple passes through the data specified by the variable `num_sweeps_to_train_with`. With these parameters we can proceed with training our simple multi-layer perceptron network."
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Initialize the parameters for the trainer\n",
"minibatch_size = 64\n",
"num_samples_per_sweep = 60000\n",
"num_sweeps_to_train_with = 10\n",
"num_minibatches_to_train = (num_samples_per_sweep * num_sweeps_to_train_with) / minibatch_size"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Minibatch: 0, Loss: 2.3106, Error: 81.25%\n",
"Minibatch: 500, Loss: 0.2747, Error: 7.81%\n",
"Minibatch: 1000, Loss: 0.0964, Error: 1.56%\n",
"Minibatch: 1500, Loss: 0.1252, Error: 4.69%\n",
"Minibatch: 2000, Loss: 0.0086, Error: 0.00%\n",
"Minibatch: 2500, Loss: 0.0387, Error: 1.56%\n",
"Minibatch: 3000, Loss: 0.0206, Error: 0.00%\n",
"Minibatch: 3500, Loss: 0.0486, Error: 3.12%\n",
"Minibatch: 4000, Loss: 0.0178, Error: 0.00%\n",
"Minibatch: 4500, Loss: 0.0107, Error: 0.00%\n",
"Minibatch: 5000, Loss: 0.0077, Error: 0.00%\n",
"Minibatch: 5500, Loss: 0.0042, Error: 0.00%\n",
"Minibatch: 6000, Loss: 0.0045, Error: 0.00%\n",
"Minibatch: 6500, Loss: 0.0292, Error: 0.00%\n",
"Minibatch: 7000, Loss: 0.0190, Error: 1.56%\n",
"Minibatch: 7500, Loss: 0.0060, Error: 0.00%\n",
"Minibatch: 8000, Loss: 0.0031, Error: 0.00%\n",
"Minibatch: 8500, Loss: 0.0019, Error: 0.00%\n",
"Minibatch: 9000, Loss: 0.0006, Error: 0.00%\n"
]
}
],
"source": [
"# Create the reader to training data set\n",
"reader_train = create_reader(train_file, True, input_dim, num_output_classes)\n",
"\n",
"# Map the data streams to the input and labels.\n",
"input_map = {\n",
" label : reader_train.streams.labels,\n",
" input : reader_train.streams.features\n",
"} \n",
"\n",
"# Run the trainer on and perform model training\n",
"training_progress_output_freq = 500\n",
"\n",
"plotdata = {\"batchsize\":[], \"loss\":[], \"error\":[]}\n",
"\n",
"for i in range(0, int(num_minibatches_to_train)):\n",
" \n",
" # Read a mini batch from the training data file\n",
" data = reader_train.next_minibatch(minibatch_size, input_map = input_map)\n",
" \n",
" trainer.train_minibatch(data)\n",
" batchsize, loss, error = print_training_progress(trainer, i, training_progress_output_freq, verbose=1)\n",
" \n",
" if not (loss == \"NA\" or error ==\"NA\"):\n",
" plotdata[\"batchsize\"].append(batchsize)\n",
" plotdata[\"loss\"].append(loss)\n",
" plotdata[\"error\"].append(error)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Let us plot the errors over the different training minibatches. Note that as we iterate the training loss decreases though we do see some intermediate bumps. \n",
"\n",
"Hence, we use smaller minibatches and using `sgd` enables us to have a great scalability while being performant for large data sets. There are advanced variants of the optimizer unique to CNTK that enable harnessing computational efficiency for real world data sets and will be introduced in advanced tutorials. "
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAACfCAYAAADqDO7LAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHiRJREFUeJzt3XmcFNW5//HPl2ERlM1dZNG4RCFuRBFcwlyVqHhFYzSR\nxF0TNXo1+rvexMRfJGpuzI353WjcolGiKBJi4r4rEOOCqEDYBWURURCURRCQ5fn9cU47RU/PTPdM\n91TPzPN+vfo1XVWnTz1dM9NPnzpV58jMcM455+rSKu0AnHPONQ2eMJxzzuXFE4Zzzrm8eMJwzjmX\nF08Yzjnn8uIJwznnXF48YbRwku6Q9PNCy0oaKGlhaaP7cr/zJB3VGPtqDuLvZmqxy9Yjjn9KOqsU\ndbt0tE47AFcakuYDOwPdzOzTxPpJwAHAbmb2vpldnG+dOcrW6yYeSb2AeUBrM9tcnzqaC0lHAM8Q\njmUroAOwGlBc19vMPiikTjP7B7Bfscs65y2M5ssIH8pDMyskfQ1oTz0/6Iso82Goku9Iqij1PhrC\nzF4xs45m1gnoQzgunTPrspOFolSCdS2eJ4zmbQRwdmL5bOC+ZAFJwyVdF58PlLRQ0pWSlkhaJOmc\nXGWrVulqSUslzZX0vcSGwZImSlopaYGkaxOv+0f8uULSKkmHxtf8QNKMuG6apAMTrzlI0r8kLZf0\nkKS2ud6wpLMlvSLp/0laClwr6VpJIxJleknaLKlVXB4r6br4ulWSnpW0bQ31z5A0OLFcIeljSQdK\naidphKRlMc43JO2Qq546bJEQ4qmd6yS9Rmh99JB0fuJYzZF0fqL80ZLmJZYXSrpC0pQY14OS2hRa\nNm6/WtJHsdwF8Tj2rPMNBb+QNF/SY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iycM55xzefGE4ZxzLi+eMJxzzuXl/wPDVUMFvB4I7wAAAABJRU5ErkJg\ngg==\n",
"text/plain": [
"<matplotlib.figure.Figure at 0x1ae8b1cb0f0>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYwAAACfCAYAAADqDO7LAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJztnXm4FMXV/z9fERBEEJe4EEHFLeKKirhfNRqMUYzGBaK4\nJC7RvBjFRI3+FKP+FJcoaoyaKBpNMBqN4r5EUF8VNyAgghgBF0QUF4SAeIXz/lE13L7D3Jmee2e7\ncj7PM89MV1efOtPT06er6pxTMjMcx3EcpxArVVsBx3Ecp3XgBsNxHMdJhRsMx3EcJxVuMBzHcZxU\nuMFwHMdxUuEGw3Ecx0mFG4waRdIfJZ1XbF1Je0l6v7zaLWt3hqR9KtFWa0PSUkkbV/rYlpJsu5hr\nMIec+ZI2LKVuTvVxg1FhJM2U9JWkNbLKx8c/a3cAM/uFmV2aRmaOus0KrpHUI+rg1wUtPh8tCXBq\n8lhJYyQtkvSlpI8l3SdpnRa01WTbaa9BSaMlndBIiNlqZjazhHpl2popaWH8/vPj+3WlbsfJjd8Y\nKo8BM4ABmQJJWwEdaNlNphQo6qCyNyS1KXcbJaK5v0lLzmG+Yw041cw6A5sBqwPX5BTSPENX9t++\nhRhwoJl1jkaps5kNzlUx1zVW7HXXiq7TiuAGozrcCRyb2D4WuCNZQdIISb+Ln/eS9L6kMyXNkTRL\n0nG56jYU6VxJn0iaLmlgYscPJY2TNE/Su5IuTBz3bHz/Ij657RyPOVHSm7HsDUnbJY7ZXtK/JX0u\naaSkdrm+sKRjJf2vpN9L+gS4UNKFku5M1Gn0RB+fXH8Xj/tS0uPZPbPEsW9K+mFiu018At9OUntJ\nd0qaG/V8WdLaueSkRdJOkl6M8mZJul7SylnVDpT0TtTjiqzjT4g6fyrpsUzPMm3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zgPOBfZtYX\n2Ae4Kub7AtgeONTM9m5CB8dpEjcYTk1iZm8QVgcbADxC/nTlD8RjptCwBkA2T5nZF2b2FSF30u6x\n/FeSJhBuxN8FNo3lyfb2Ae41s89jO18U2fYMM8v0dl6P36sQo81soYWMrV8AD8fySVnHj4ztPw+s\nJqkzIcHhOQprlYwB2tGQ8fkpM5uXon3HWY6Vq62A4+RhFHAlYfW8tfLUW5z43JRhWW79Akl7EYzB\nzma2WNJoYJUidUzTdrLOkkQb39Dw0JbdbvIYS2wvpfH/Nte6DAIOM7O3kzsk9SXMDzlOs/AehlOL\nZG68twEXmdnkZhybzX6SVo9DM4cALxAytH4ejcUWhOWAM3ydmBh+hjCMtQaApK5Ftt1U+Uxgx/j5\n8CbqFOLIqNPuhNXg5gNPAIOXNS5t10zZjtMINxhOLWIAZjbLzG5IUzfPdoZXCENREwjDS+OAx4G2\nkiYD/x94KVH/FmCSpDvN7M24/9k4zHN1kW03VX4V8AtJrxNSUzdFPrlfSRoH3AicEMsvJnyviZLe\nAH6XR7bjpMbTmzuO4zip8B6G4ziOkwo3GI7jOE4q3GA4juM4qXCD4TiO46TCDYbjOI6TCjcYjuM4\nTircYDiO4zip+D+zNhM8a9e+zAAAAABJRU5ErkJggg==\n",
"text/plain": [
"<matplotlib.figure.Figure at 0x1ae972678d0>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# Compute the moving average loss to smooth out the noise in SGD\n",
"plotdata[\"avgloss\"] = moving_average(plotdata[\"loss\"])\n",
"plotdata[\"avgerror\"] = moving_average(plotdata[\"error\"])\n",
"\n",
"# Plot the training loss and the training error\n",
"import matplotlib.pyplot as plt\n",
"\n",
"plt.figure(1)\n",
"plt.subplot(211)\n",
"plt.plot(plotdata[\"batchsize\"], plotdata[\"avgloss\"], 'b--')\n",
"plt.xlabel('Minibatch number')\n",
"plt.ylabel('Loss')\n",
"plt.title('Minibatch run vs. Training loss')\n",
"\n",
"plt.show()\n",
"\n",
"plt.subplot(212)\n",
"plt.plot(plotdata[\"batchsize\"], plotdata[\"avgerror\"], 'r--')\n",
"plt.xlabel('Minibatch number')\n",
"plt.ylabel('Label Prediction Error')\n",
"plt.title('Minibatch run vs. Label Prediction Error')\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Run evaluation / testing \n",
"\n",
"Now that we have trained the network, let us evaluate the trained network on the test data. This is done using `trainer.test_minibatch`."
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Average test error: 1.74%\n"
]
}
],
"source": [
"# Read the training data\n",
"reader_test = create_reader(test_file, False, input_dim, num_output_classes)\n",
"\n",
"test_input_map = {\n",
" label : reader_test.streams.labels,\n",
" input : reader_test.streams.features,\n",
"}\n",
"\n",
"# Test data for trained model\n",
"test_minibatch_size = 512\n",
"num_samples = 10000\n",
"num_minibatches_to_test = num_samples // test_minibatch_size\n",
"test_result = 0.0\n",
"\n",
"for i in range(num_minibatches_to_test):\n",
" \n",
" # We are loading test data in batches specified by test_minibatch_size\n",
" # Each data point in the minibatch is a MNIST digit image of 784 dimensions \n",
" # with one pixel per dimension that we will encode / decode with the \n",
" # trained model.\n",
" data = reader_test.next_minibatch(test_minibatch_size,\n",
" input_map = test_input_map)\n",
"\n",
" eval_error = trainer.test_minibatch(data)\n",
" test_result = test_result + eval_error\n",
"\n",
"# Average of evaluation errors of all test minibatches\n",
"print(\"Average test error: {0:.2f}%\".format(test_result*100 / num_minibatches_to_test))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Note, this error is very comparable to our training error indicating that our model has good \"out of sample\" error a.k.a. generalization error. This implies that our model can very effectively deal with previously unseen observations (during the training process). This is key to avoid the phenomenon of overfitting.\n",
"\n",
"**Huge** reduction in error compared to multi-class LR (from CNTK 103B)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We have so far been dealing with aggregate measures of error. Let us now get the probabilities associated with individual data points. For each observation, the `eval` function returns the probability distribution across all the classes. The classifier is trained to recognize digits, hence has 10 classes. First let us route the network output through a `softmax` function. This maps the aggregated activations across the network to probabilities across the 10 classes."
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"out = C.softmax(z)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Let us a small minibatch sample from the test data."
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Read the data for evaluation\n",
"reader_eval = create_reader(test_file, False, input_dim, num_output_classes)\n",
"\n",
"eval_minibatch_size = 25\n",
"eval_input_map = {input: reader_eval.streams.features} \n",
"\n",
"data = reader_test.next_minibatch(eval_minibatch_size, input_map = test_input_map)\n",
"\n",
"img_label = data[label].asarray()\n",
"img_data = data[input].asarray()\n",
"predicted_label_prob = [out.eval(img_data[i]) for i in range(len(img_data))]"
]
},
{
"cell_type": "code",
"execution_count": 22,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Find the index with the maximum value for both predicted as well as the ground truth\n",
"pred = [np.argmax(predicted_label_prob[i]) for i in range(len(predicted_label_prob))]\n",
"gtlabel = [np.argmax(img_label[i]) for i in range(len(img_label))]"
]
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Label : [4, 5, 6, 7, 8, 9, 7, 4, 6, 1, 4, 0, 9, 9, 3, 7, 8, 4, 7, 5, 8, 5, 3, 2, 2]\n",
"Predicted: [4, 6, 6, 7, 8, 9, 7, 4, 6, 1, 4, 0, 9, 9, 3, 7, 8, 0, 7, 5, 8, 5, 3, 2, 2]\n"
]
}
],
"source": [
"print(\"Label :\", gtlabel[:25])\n",
"print(\"Predicted:\", pred)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Let us visualize some of the results"
]
},
{
"cell_type": "code",
"execution_count": 24,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type":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D8CWDjDk5Q77KLuupubG7u7uwuJH5XhqlBH+ApE/AMjtW9nIQ1fhssLwTyIZnqLL2sv\nHAIi/hHg03PcV89aedFADATzvMXnOnyp5ArfhYh/BOwS0uA6fF+Mg0o9VOZFe/xUua8g7AsR/8CI\novccwGOLH03B4WPK1Y9IL/ILn4GIfwRwBJ+tPQZhQPqaZbG5Dp+9gMji898RhK9AxC9BqqQWajhM\n4MFgYDc3NznpKy+F1W63rd/v54gOt56Jj30/ynHhLShPLxwKIr5D5KpzxR3KaRGEg5RWo/HvaKvl\nclmoquMjfjdag8Egq7/3MlpS0BEOCRE/AJN/u93m3OvLy8ss+s6kx1irt7e3nN4dl9MiuIeqvGiB\n9Jh+w9NtBeFQEPEDMPH9c2zx39/fc6Tv9/u2Wq1y0Xy/8PupBdceBT1crSeLLxwKIr5DRHp+Hhaf\nLT2s+HA4tM1mUyja4bp6BPhSi6W0ZfGFY0HET4DJj3O06l5dXeVIPxgMbLFY2GKxsPf391xlnT9n\nQkeLtwi+AUcWXzgURPwAPk+O7jyuloPl7vf7uS49eAIpFZzUaKyUJLbksYVjoLFrLPQBcPQ/cEj4\nz8Nr30ciHbwA35LL5/su/nl/Lgh7IvzCiPiC8HcjJL4iRoJQQ4j4glBDiPiCUENUEdVXNEoQTgyy\n+IJQQ4j4glBDiPiCUEOI+IJQQ4j4glBDiPiCUEOI+IJQQ4j4glBDiPiCUEOI+IJQQ4j4glBDiPiC\nUEOI+IJQQ4j4glBDiPiCUEOI+IJQQ4j4glBDiPiCUEOI+IJQQ4j4glBD/B98ADVKMyzD/gAAAABJ\nRU5ErkJggg==\n",
"text/plain": [
"<matplotlib.figure.Figure at 0x1ae97291b00>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# Plot a random image\n",
"sample_number = 5\n",
"plt.imshow(img_data[sample_number].reshape(28,28), cmap=\"gray_r\")\n",
"plt.axis('off')\n",
"\n",
"img_gt, img_pred = gtlabel[sample_number], pred[sample_number]\n",
"print(\"Image Label: \", img_pred)"
]
},
{
"cell_type": "markdown",
"metadata": {
"collapsed": true
},
"source": [
"**Exploration Suggestion**\n",
"- Try exploring how the classifier behaves with different parameters, e.g. changing the `minibatch_size` parameter from 25 to say 64 or 128. What happens to the error rate? How does the error compare to the logistic regression classifier?\n",
"- Try increasing the number of sweeps\n",
"- Can you change the network to reduce the training error rate? When do you see *overfitting* happening?"
]
},
{
"cell_type": "markdown",
"metadata": {
"collapsed": true
},
"source": [
"**Code link**\n",
"\n",
"If you want to try running the tutorial from Python command prompt please run the [SimpleMNIST.py](https://github.com/Microsoft/CNTK/tree/release/2.5/Examples/Image/Classification/MLP/Python) example."
]
}
],
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.4"
}
},
"nbformat": 4,
"nbformat_minor": 1
}