Questa pagina è stata tradotta dall'API Cloud Translation.
Switch to English

Set di dati TensorFlow: una raccolta di set di dati pronti per l'uso.

TensorFlow Datasets is a collection of datasets ready to use, with TensorFlow or other Python ML frameworks, such as Jax. All datasets are exposed as , enabling easy-to-use and high-performance input pipelines. To get started see the guide and our list of datasets.
import tensorflow.compat.v2 as tf
import tensorflow_datasets as tfds

# Construct a
ds = tfds.load('mnist', split='train', shuffle_files=True)

# Build your input pipeline
ds = ds.shuffle(1024).batch(32).prefetch(
for example in ds.take(1):
  image, label = example["image"], example["label"]
Esegui in un notebook