MNIST: Handwritten Digits Dataset
Practice and compare simple logistic regression with support vector machines.
We’ll explore the available kernel options in SVMs and compare their performance against each other and against simple logistic regression. We are going to work with three different datasets. Let’s perform the required imports first.
Press + to interact
# required importsimport pandas as pdimport numpy as npimport matplotlib.pyplot as pltimport seaborn as snssns.set(font_scale=1.3) # setting font size for the whole notebooksns.set_style("white") # want to set the stylefrom sklearn import svm, linear_model, datasetsfrom sklearn.model_selection import cross_val_score
Let's move on to our first dataset.
The data
The Modified National Institute of Standards and Technology (MNIST) database of handwritten digits (
Access this course and 1400+ top-rated courses and projects.