Package tensorflow.serving
Interface Classification.ClassOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Classification.Class,Classification.Class.Builder
- Enclosing class:
Classification
public static interface Classification.ClassOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getLabel
String getLabel()Label or name of the class.
string label = 1;- Returns:
- The label.
-
getLabelBytes
com.google.protobuf.ByteString getLabelBytes()Label or name of the class.
string label = 1;- Returns:
- The bytes for label.
-
getScore
float getScore()Score for this class (e.g., the probability the item belongs to this class). As per the proto3 default-value semantics, if the score is missing, it should be treated as 0.
float score = 2;- Returns:
- The score.
-