|TensorFlow 1 version||View source on GitHub|
Represents the output of a classification head.
Compat aliases for migration
See Migration guide for more details.
tf.estimator.export.ClassificationOutput( scores=None, classes=None )
Either classes or scores or both must be set.
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.