liveBook · Manning

TensorFlow Dataset

TensorFlow Dataset is an iterable abstraction for representing, transforming, batching, and supplying sequences of data elements to machine-learning models.

How 2 Manning books explain it

Deep Learning with Python, Third Edition

TensorFlow's iterable dataset abstraction for efficient loading, preprocessing, and batching of data.

How it is used
Supplies iterable, preprocessed batches to Keras training, including image classification and distributed training.
How deep it goes
Works through directory loading, array construction, iteration, batching, and mapping, then gives a prefetching rule of thumb.
Examples
Uses directory-based image datasets and NumPy arrays to demonstrate creation, shape inspection, batching, mapping, and model fitting.
What you can do after
Apply it via `tf.data.Dataset` and Keras utilities to create training inputs and configure prefetching for distributed runs.

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.

Read how Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI explains TensorFlow Dataset →

Related concepts

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.