<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.15.1/tensorflow/python/saved_model/model_utils/export_output.py#L416-L425) |

Represents the output of a supervised eval process. (deprecated)

Inherits From: [`ExportOutput`](https://www.tensorflow.org/versions/r2.15/api_docs/python/tf/estimator/export/ExportOutput.md.txt)

```python
tf.estimator.export.EvalOutput(
    loss=None, predictions=None, metrics=None
)
```

> [!WARNING]
> **Deprecated:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.keras instead.

This class generates the appropriate signature def for exporting
eval output by type-checking and wrapping loss, predictions, and metrics
values.

<br />

<br />

<br />

| ## 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. |

<br />

<br />

<br />

<br />

| ## 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). |

<br />

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `loss` | <br /> <br /> |
| `metrics` | <br /> <br /> |
| `predictions` | <br /> <br /> |

<br />

## Methods

### `as_signature_def`

[View source](https://github.com/tensorflow/tensorflow/blob/v2.15.1/tensorflow/python/saved_model/model_utils/export_output.py#L398-L401)

```python
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.

<br />

<br />

<br />

| Args ||
|---|---|
| `receiver_tensors` | a `Tensor`, or a dict of string to `Tensor`, specifying input nodes that will be fed. |

<br />

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| LOSS_NAME | `'loss'` |
| METRICS_NAME | `'metrics'` |
| METRIC_UPDATE_SUFFIX | `'update_op'` |
| METRIC_VALUE_SUFFIX | `'value'` |
| PREDICTIONS_NAME | `'predictions'` |

<br />