Digit Classifier from Scratch#

%load_ext autoreload
%autoreload 2

Imports#

import fastai
from fastai.vision.all import *
from fastai.vision.all import *
from fastai.vision.widgets import *
from aiking.data.external import * #We need to import this after fastai modules
import warnings
from matplotlib import cm

warnings.filterwarnings("ignore")

Dataset#

path = untar_data(URLs.MNIST_SAMPLE); path
Path('/Landmark2/pdo/aiking/data/mnist_sample')
path
Path('/Landmark2/pdo/aiking/data/mnist_sample')