tf.contrib.timeseries.NumpyReader

A time series parser for feeding Numpy arrays to a TimeSeriesInputFn.

Avoids embedding data in the graph as constants.

Args
data A dictionary mapping feature names to Numpy arrays, with two possible shapes (requires keys TrainEvalFeatures.TIMES and TrainEvalFeatures.VALUES): Univariate; TIMES and VALUES are both vectors of shape [series length] Multivariate; TIMES is a vector of shape [series length], VALUES has shape [series length x number of features]. In any case, VALUES and any exogenous features must have their shapes prefixed by the shape of the value corresponding to the TIMES key.
read_num_records_hint The maximum number of samples to read at one time, for efficiency.

Methods

check_dataset_size

View source

Raise an error if the dataset is too small.

read

View source

Returns a large chunk of the Numpy arrays for later re-chunking.

read_full

View source

Returns Tensor versions of the full Numpy arrays.

© 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/r1.15/api_docs/python/tf/contrib/timeseries/NumpyReader