tf.contrib.predictor.from_contrib_estimator
Stay organized with collections
Save and categorize content based on your preferences.
Constructs a Predictor
from a tf.contrib.learn.Estimator
.
tf.contrib.predictor.from_contrib_estimator(
estimator, prediction_input_fn, input_alternative_key=None,
output_alternative_key=None, graph=None, config=None
)
Args |
estimator
|
an instance of tf.contrib.learn.Estimator .
|
prediction_input_fn
|
a function that takes no arguments and returns an
instance of InputFnOps .
|
input_alternative_key
|
Optional. Specify the input alternative used for
prediction.
|
output_alternative_key
|
Specify the output alternative used for
prediction. Not needed for single-headed models but required for
multi-headed models.
|
graph
|
Optional. The Tensorflow graph in which prediction should be
done.
|
config
|
ConfigProto proto used to configure the session.
|
Returns |
An initialized Predictor .
|
Raises |
TypeError
|
if estimator is a core Estimator instead of a contrib
Estimator .
|
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."],[],[]]