16 Apr, 2016
TensorFlow Udacity 1_notmnist - Part 5
Summary of 1_notmnist
Basically 1_notmnist is to learn how to display data in Jupyter Notebook. Besides, it also let us know on sklearn - a python machine library - so that we can then compare with TensorFlow. This is the exact ipynb file at Tensorflow Github Repo.
This is as a form of sharing and discuss on better way to solve 1_notmnist problem. Do not copy and paste directly as it does not help on improving yourself + the answer is not optimized.
The entire series of TensorFlow Udacity can be found at tensorflow-udacity tag
Solving Problem 5
def reshape(a): return a.reshape(a.shape,a.shape*a.shape) t = pickle.load(open("notMNIST.pickle", "r")) unique_td = unique_rows(reshape(t['train_dataset'])) duplicate_rows = len(t['train_dataset']) - len(unique_td) print(duplicate_rows)
Still got 2 optional question that I have not yet answered. Will get back to that in the future.