tf.contrib.timeseries.predict_continuation_input_fn
Stay organized with collections
Save and categorize content based on your preferences.
An Estimator input_fn for running predict() after evaluate().
tf.contrib.timeseries.predict_continuation_input_fn(
evaluation, steps=None, times=None, exogenous_features=None
)
If the call to evaluate() we are making predictions based on had a batch_size
greater than one, predictions will start after each of these windows
(i.e. will have the same batch dimension).
Args |
evaluation
|
The dictionary returned by Estimator.evaluate , with keys
FilteringResults.STATE_TUPLE and FilteringResults.TIMES.
|
steps
|
The number of steps to predict (scalar), starting after the
evaluation. If times is specified, steps must not be; one is required.
|
times
|
A [batch_size x window_size] array of integers (not a Tensor)
indicating times to make predictions for. These times must be after the
corresponding evaluation. If steps is specified, times must not be;
one is required. If the batch dimension is omitted, it is assumed to be 1.
|
exogenous_features
|
Optional dictionary. If specified, indicates exogenous
features for the model to use while making the predictions. Values must
have shape [batch_size x window_size x ...], where batch_size matches
the batch dimension used when creating evaluation , and window_size is
either the steps argument or the window_size of the times argument
(depending on which was specified).
|
Returns |
An input_fn suitable for passing to the predict function of a time
series Estimator .
|
Raises |
ValueError
|
If times or steps are misspecified.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-10-01 UTC."],[],[]]