About Keras Getting started Code examples Developer guides API reference Models API Layers API Callbacks API Optimizers Metrics Losses Data loading Built-in small datasets MNIST digits classification dataset CIFAR10 small images classification dataset CIFAR100 small images classification dataset IMDB movie review sentiment classification dataset Reuters newswire classification dataset Fashion MNIST dataset, an alternative to MNIST Boston Housing price regression dataset Keras Applications Mixed precision Utilities KerasTuner KerasCV KerasNLP Keras Core: Keras for TensorFlow, JAX, and PyTorch KerasTuner: Hyperparameter Tuning KerasCV: Computer Vision Workflows KerasNLP: Natural Language Workflows Why choose Keras? Community & governance Contributing to Keras
» API reference / Datasets

Datasets

The tf.keras.datasets module provide a few toy datasets (already-vectorized, in Numpy format) that can be used for debugging a model or creating simple code examples.

If you are looking for larger & more useful ready-to-use datasets, take a look at TensorFlow Datasets.

Available datasets

MNIST digits classification dataset

  • load_data function

CIFAR10 small images classification dataset

  • load_data function

CIFAR100 small images classification dataset

  • load_data function

IMDB movie review sentiment classification dataset

  • load_data function
  • get_word_index function

Reuters newswire classification dataset

  • load_data function
  • get_word_index function

Fashion MNIST dataset, an alternative to MNIST

  • load_data function

Boston Housing price regression dataset

  • load_data function
Datasets
◆ Available datasets
MNIST digits classification dataset
CIFAR10 small images classification dataset
CIFAR100 small images classification dataset
IMDB movie review sentiment classification dataset
Reuters newswire classification dataset
Fashion MNIST dataset, an alternative to MNIST
Boston Housing price regression dataset
Terms | Privacy