TensorFlow Dataset
TensorFlow Dataset is an iterable abstraction for representing, transforming, batching, and supplying sequences of data elements to machine-learning models.
Deep Learning with Python, Third Edition
TensorFlow's iterable dataset abstraction for efficient loading, preprocessing, and batching of data.
- How it is used
- Supplies efficient input pipelines for image classification and distributed training.
- How deep it goes
- Demonstrates creation, iteration, batching, mapping, fitting, and prefetching without detailing Dataset internals.
- Examples
- Uses image directories and NumPy vectors to demonstrate loading, reshaping, batching, and model training.
- What you can do after
- Apply it via tf.data and Keras to prepare batches, train a model, and prefetch distributed-training inputs.
Read how Deep Learning with Python, Third Edition explains TensorFlow Dataset →
Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI
tf.data.Dataset is a TensorFlow data abstraction representing a sequence of elements that can be transformed and iterated during model input processing.
- How it is used
- Builds efficient TensorFlow input pipelines for structured tabular model training, validation, and testing.
- How deep it goes
- Explains conversion, shuffling, batching, prefetching, and dataset splits, but defers Dataset internals.
- Examples
- Uses property data with categorical and continuous columns, then creates train, validation, and test datasets.
- What you can do after
- Builds a shuffled, batched, prefetched dataset from a pandas-style DataFrame for Keras model input.
Also covered in
What to know first
- trainingTraining is the process of fitting a machine-learning model to data by adjusting its parameters or learned representations to improve its performance on a task.
Related concepts
- image_dataset_from_directoryproduced by · image_dataset_from_directory is a Keras utility function that creates an image dataset from files organized in class-specific subdirectories.
- tf.data APIpart of · The tf.data API is TensorFlow’s API for constructing input pipelines that read, transform, batch, and iterate over data efficiently.
- fit methodused by · A fit method is an operation that estimates model parameters or learns a model or data transformation from supplied data.
- generationused by · Generation is the production of an output by a computational model from supplied input or context, often using patterns learned from data.
- batch sizeuses · Batch size is the number of items grouped for processing together in a single batch or computational operation.
Questions about TensorFlow Dataset
What is TensorFlow Dataset?
TensorFlow Dataset is an iterable abstraction for representing, transforming, batching, and supplying sequences of data elements to machine-learning models.
Which Manning books explain TensorFlow Dataset?
Deep Learning with Python, Third Edition and Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI.
What should I know before learning TensorFlow Dataset?
Manning books that teach TensorFlow Dataset usually introduce training first.
What is TensorFlow Dataset part of?
TensorFlow Dataset is part of tf.data API. The tf.data API is TensorFlow’s API for constructing input pipelines that read, transform, batch, and iterate over data efficiently.
What is TensorFlow Dataset also called?
TensorFlow Dataset is also called tf.data.Dataset.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

