keras.datasets.cifar10
Dataset of 50,000 32x32 color training images, labeled over 10 categories, and 10,000 test images.
(X_train, y_train), (X_test, y_test) = cifar10.load_data()
keras.datasets.cifar100
Dataset of 50,000 32x32 color training images, labeled over 100 categories, and 10,000 test images.
(X_train, y_train), (X_test, y_test) = cifar100.load_data(label_mode='fine')
Return:
Arguments:
keras.datasets.imdb
Dataset of 25,000 movies reviews from IMDB, labeled by sentiment (positive/negative). Reviews have been preprocessed, and each review is encoded as a sequence of word indexes (integers). For convenience, words are indexed by overall frequency in the dataset, so that for instance the integer "3" encodes the 3rd most frequent word in the data. This allows for quick filtering operations such as: "only consider the top 10,000 most common words, but eliminate the top 20 most common words".
As a convention, "0" does not stand for a specific word, but instead is used to encode any unknown word.
(X_train, y_train), (X_test, y_test) = imdb.load_data(path="imdb.pkl", \
nb_words=None, skip_top=0, maxlen=None, test_split=0.1, seed=113)
Return:
Arguments:
'~/.keras/datasets/' + path), if will be downloaded to this location (in cPickle format).keras.datasets.reuters
Dataset of 11,228 newswires from Reuters, labeled over 46 topics. As with the IMDB dataset, each wire is encoded as a sequence of word indexes (same conventions).
(X_train, y_train), (X_test, y_test) = reuters.load_data(path="reuters.pkl", \
nb_words=None, skip_top=0, maxlen=None, test_split=0.1, seed=113)
The specifications are the same as that of the IMDB dataset.
This dataset also makes available the word index used for encoding the sequences:
word_index = reuters.get_word_index(path="reuters_word_index.pkl")
Return: A dictionary where key are words (str) and values are indexes (integer). eg. word_index["giraffe"] might return 1234.
Arguments:
'~/.keras/datasets/' + path), if will be downloaded to this location (in cPickle format).keras.datasets.mnist
Dataset of 60,000 28x28 grayscale images of the 10 digits, along with a test set of 10,000 images.
(X_train, y_train), (X_test, y_test) = mnist.load_data()
Return:
Arguments:
'~/.keras/datasets/' + path), if will be downloaded to this location (in cPickle format).