Spec-Zone.ru › TensorFlow 2.4

tf.keras.preprocessing.image.Iterator

View source on GitHub

Base class for image data iterators.

Inherits From: Sequence

View aliases

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.keras.preprocessing.image.Iterator

tf.keras.preprocessing.image.Iterator(
    n, batch_size, shuffle, seed
)

Every Iterator must implement the _get_batches_of_transformed_samples method.

Arguments
n Integer, total number of samples in the dataset to loop over.
batch_size Integer, size of a batch.
shuffle Boolean, whether to shuffle the data between epochs.
seed Random seeding for data shuffling.

Methods

next

View source

next()

For python 2.x.

Returns
The next batch.

on_epoch_end

View source

on_epoch_end()

reset

View source

reset()

__getitem__

View source

__getitem__(
    idx
)

__iter__

View source

__iter__()

__len__

View source

__len__()
Class Variables
white_list_formats

© 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/image/Iterator

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API