The classes Tensor must provide string labels, not integer class IDs.
If only classes is set, it is interpreted as providing top-k results in
descending order.
If only scores is set, it is interpreted as providing a score for every class
in order of class ID.
If both classes and scores are set, they are interpreted as zipped, so each
score corresponds to the class at the same index. Clients should not depend
on the order of the entries.
Args
scores
A float Tensor giving scores (sometimes but not always
interpretable as probabilities) for each class. May be None, but
only if classes is set. Interpretation varies-- see class doc.
classes
A string Tensor giving predicted class labels. May be None,
but only if scores is set. Interpretation varies-- see class doc.
Raises
ValueError
if neither classes nor scores is set, or one of them is not a
Tensor with the correct dtype.
[[["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."],[],[],null,["# tf.estimator.export.ClassificationOutput\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/saved_model/model_utils/export_output.py#L98-L174) |\n\nRepresents the output of a classification head. (deprecated)\n\nInherits From: [`ExportOutput`](../../../tf/estimator/export/ExportOutput)\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n\\`tf.compat.v1.estimator.export.ClassificationOutput\\`\n\n\u003cbr /\u003e\n\n tf.estimator.export.ClassificationOutput(\n scores=None, classes=None\n )\n\n| **Deprecated:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.keras instead.\n\nEither classes or scores or both must be set.\n\nThe classes `Tensor` must provide string labels, not integer class IDs.\n\nIf only classes is set, it is interpreted as providing top-k results in\ndescending order.\n\nIf only scores is set, it is interpreted as providing a score for every class\nin order of class ID.\n\nIf both classes and scores are set, they are interpreted as zipped, so each\nscore corresponds to the class at the same index. Clients should not depend\non the order of the entries.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `scores` | A float `Tensor` giving scores (sometimes but not always interpretable as probabilities) for each class. May be `None`, but only if `classes` is set. Interpretation varies-- see class doc. |\n| `classes` | A string `Tensor` giving predicted class labels. May be `None`, but only if `scores` is set. Interpretation varies-- see class doc. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|--------------|------------------------------------------------------------------------------------------------|\n| `ValueError` | if neither classes nor scores is set, or one of them is not a `Tensor` with the correct dtype. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|-----------|---------------|\n| `classes` | \u003cbr /\u003e \u003cbr /\u003e |\n| `scores` | \u003cbr /\u003e \u003cbr /\u003e |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `as_signature_def`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/saved_model/model_utils/export_output.py#L155-L174) \n\n as_signature_def(\n receiver_tensors\n )\n\nGenerate a SignatureDef proto for inclusion in a MetaGraphDef.\n\nThe SignatureDef will specify outputs as described in this ExportOutput,\nand will use the provided receiver_tensors as inputs.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|--------------------|---------------------------------------------------------------------------------------|\n| `receiver_tensors` | a `Tensor`, or a dict of string to `Tensor`, specifying input nodes that will be fed. |\n\n\u003cbr /\u003e"]]