Skip to content

Latest commit

 

History

History
 
 

mnist

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

MNIST - Handwritten Digit Recognition

Download package: https://www.cntk.ai/OnnxModels/mnist.tar.gz
Model size: 26 kB

Description

This model predicts handwritten digits using a convolutional neural network (CNN).

Dataset

The model has been trained on the popular MNIST dataset.

Source

The model is trained in CNTK following the tutorial CNTK 103D: Convolutional Neural Network with MNIST. Note that the specific architecture used is the model with alternating convolution and max pooling layers (found under the "Solution" section at the end of the tutorial).

Model input and output

Input

Input image of the shape (1x28x28)

Output

Output is a (1x10) array

Pre-processing steps

Resize the input image to a (1x28X28) array of type float32, scaled to between [0,1] (computed by: image/255).

Post-processing steps

Route the model output through a softmax function to map the aggregated activations across the network to probabilities across the 10 classes.

Sample test data

Sets of sample input and output files are provided in .npz format (test_data_*.npz). The input is a (1x28x28) numpy array of an MNIST test image, while the output is an array of length 10 corresponding to the output of evaluating the model on the sample input.

License

MIT