contrib.keras.utils.HDF5Matrix
tf.contrib.keras.utils.HDF5Matrix
class tf.contrib.keras.utils.HDF5Matrix
Defined in tensorflow/contrib/keras/python/keras/utils/io_utils.py
.
Representation of HDF5 dataset to be used instead of a Numpy array.
Example:
x_data = HDF5Matrix('input/file.hdf5', 'data') model.predict(x_data)
Providing start
and end
allows use of a slice of the dataset.
Optionally, a normalizer function (or lambda) can be given. This will be called on every slice of data retrieved.
Arguments:
datapath: string, path to a HDF5 file dataset: string, name of the HDF5 dataset in the file specified in datapath start: int, start of desired slice of the specified dataset end: int, end of desired slice of the specified dataset normalizer: function to be called on data when retrieved
Returns:
An array-like HDF5 dataset.
Properties
shape
Methods
__init__
__init__( datapath, dataset, start=0, end=None, normalizer=None )
__getitem__
__getitem__(key)
__len__
__len__()
Class Members
refs
© 2017 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/api_docs/python/tf/contrib/keras/utils/HDF5Matrix