tf.estimator.export.EvalOutput
Stay organized with collections
Save and categorize content based on your preferences.
Represents the output of a supervised eval process.
Inherits From: ExportOutput
View aliases
Compat aliases for migration
See
Migration guide for
more details.
`tf.compat.v1.estimator.export.EvalOutput`
tf.estimator.export.EvalOutput(
loss=None, predictions=None, metrics=None
)
This class generates the appropriate signature def for exporting
eval output by type-checking and wrapping loss, predictions, and metrics
values.
Args |
loss
|
dict of Tensors or single Tensor representing calculated loss.
|
predictions
|
dict of Tensors or single Tensor representing model
predictions.
|
metrics
|
Dict of metric results keyed by name.
The values of the dict can be one of the following:
(1) instance of Metric class.
(2) (metric_value, update_op) tuples, or a single tuple.
metric_value must be a Tensor, and update_op must be a Tensor or Op.
|
Raises |
ValueError
|
if any of the outputs' dict keys are not strings or tuples of
strings or the values are not Tensors (or Operations in the case of
update_op).
|
Attributes |
loss
|
|
metrics
|
|
predictions
|
|
Methods
as_signature_def
View source
as_signature_def(
receiver_tensors
)
Generate a SignatureDef proto for inclusion in a MetaGraphDef.
The SignatureDef will specify outputs as described in this ExportOutput,
and will use the provided receiver_tensors as inputs.
Args |
receiver_tensors
|
a Tensor , or a dict of string to Tensor , specifying
input nodes that will be fed.
|
Class Variables |
LOSS_NAME
|
'loss'
|
METRICS_NAME
|
'metrics'
|
METRIC_UPDATE_SUFFIX
|
'update_op'
|
METRIC_VALUE_SUFFIX
|
'value'
|
PREDICTIONS_NAME
|
'predictions'
|
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. Some content is licensed under the numpy license.
Last updated 2023-10-06 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 2023-10-06 UTC."],[],[]]