tf.keras.utils.HDF5Matrix

View source on GitHub

Representation of HDF5 dataset to be used instead of a Numpy array.

tf.keras.utils.HDF5Matrix(
    datapath, dataset, start=0, end=None, normalizer=None
)

THIS CLASS IS DEPRECATED. Training with HDF5Matrix may not be optimized for performance, and might not work with every distribution strategy.

We recommend using https://github.com/tensorflow/io to load your HDF5 data into a tf.data Dataset and passing that dataset to Keras.

Arguments:

Attributes:

Raises:

ImportError if HDF5 & h5py are not installed

Methods

__getitem__

View source

__getitem__(
    key
)

__len__

View source

__len__()

Class Variables