Our Own MNIST Library

Interact with the sample code to create a custom MNIST library.

Goal of the lesson

In the previous lessons, we built a binary classifier. Now we want to apply that program to MNIST.

The first step is to reshape MNIST’s images and labels into an input for our program. Let’s see how to do that.

Prepare the input matrices

Our binary classifier program expects its input formatted as two matrices: a set of examples XX and a set of labels YY. Let’s start with the matrix of examples XX.

XX is supposed to ...

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy