Mnist

class imagepypelines.core.ml.Mnist(fraction=1)[source]

Bases: imagepypelines.core.ml.datasets.DatasetRetrieval

Object to load the MNIST numbers dataset in a pipeline compatible format

x_train

60,000 monochromatic 28x28 images

Type:list
y_train

corresponding integer labels for the data

Type:list
x_test

10,000 monochromatic 28x28 images

Type:list
y_test

corresponding integer labels for the data

Type:list

Methods Summary

get_sorted_test() retrieves data and labels for test set sorted by label
get_sorted_train() retrieves data and labels for train set sorted by label
get_test() retrieves the mnist numbers test dataset using keras
get_train() retrieves the mnist numbers train dataset using keras

Methods Documentation

get_sorted_test()

retrieves data and labels for test set sorted by label

get_sorted_train()

retrieves data and labels for train set sorted by label

get_test()[source]

retrieves the mnist numbers test dataset using keras

Parameters:None
Returns:10,000 monochromatic 28x28 images y_test(list): corresponding integer labels for the data
Return type:x_test(list)
get_train()[source]

retrieves the mnist numbers train dataset using keras

Parameters:None
Returns:60,000 monochromatic 28x28 images y_train(list): corresponding integer labels for the data
Return type:x_train(list)