# tf.contrib.timeseries.WholeDatasetInputFn

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/timeseries/python/timeseries/input_pipeline.py#L578-L619) |

Supports passing a full time series to a model for evaluation/inference.

    tf.contrib.timeseries.WholeDatasetInputFn(
        time_series_reader
    )

Note that this `TimeSeriesInputFn` is not designed for high throughput, and
should not be used for training. It allows for sequential evaluation on a full
dataset (with sequential in-sample predictions), which then feeds naturally
into `predict_continuation_input_fn` for making out-of-sample
predictions. While this is useful for plotting and interactive use,
`RandomWindowInputFn` is better suited to training and quantitative
evaluation.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `time_series_reader` | A TimeSeriesReader object. |

<br />

## Methods

### `create_batch`

[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/timeseries/python/timeseries/input_pipeline.py#L607-L619)

    create_batch()

A suitable `input_fn` for an `Estimator`'s `evaluate()`.

<br />

<br />

<br />

| Returns ||
|---|---|
| A dictionary mapping feature names to `Tensors`, each shape prefixed by [1, data set size](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/timeseries/i.e.%20a%20batch%20size%20of%201). ||

<br />

### `__call__`

[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/timeseries/python/timeseries/input_pipeline.py#L573-L575)

    __call__()

Call self as a function.