In [11]:
%reload_ext autoreload
%autoreload 2
%matplotlib inline

import matplotlib.pyplot as plt
import numpy as np

import sys
sys.path.append('..')

from helper import nn

In [12]:
X, y = nn.load_data('ex3data1.mat')

print(X.shape)
print(y.shape)


(5000, 400)
(5000,)


In [13]:
pick_one = np.random.randint(0, 5000)
nn.plot_an_image(X[pick_one, :])
print('this should be {}'.format(y[pick_one]))


this should be 10

In [14]:
nn.plot_100_image(X)



In [ ]: