Module: tf.keras.preprocessing

Keras data preprocessing utils.

Modules

image module: Set of tools for real-time data augmentation on image data.

sequence module: Utilities for preprocessing sequence data.

text module: Utilities for text input preprocessing.

Functions

image_dataset_from_directory(...): Generates a tf.data.Dataset from image files in a directory.

text_dataset_from_directory(...): Generates a tf.data.Dataset from text files in a directory.

timeseries_dataset_from_array(...): Creates a dataset of sliding windows over a timeseries provided as array.

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/keras/preprocessing