Interface ImageClassificationPredictionParamsOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ImageClassificationPredictionParams,ImageClassificationPredictionParams.Builder
@Generated
public interface ImageClassificationPredictionParamsOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionfloatThe Model only returns predictions with at least this confidence score.intThe Model only returns up to that many top, by confidence score, predictions per instance.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
-
getConfidenceThreshold
float getConfidenceThreshold()The Model only returns predictions with at least this confidence score. Default value is 0.0
float confidence_threshold = 1;- Returns:
- The confidenceThreshold.
-
getMaxPredictions
int getMaxPredictions()The Model only returns up to that many top, by confidence score, predictions per instance. If this number is very high, the Model may return fewer predictions. Default value is 10.
int32 max_predictions = 2;- Returns:
- The maxPredictions.
-