Interface ImageClassificationPredictionParamsOrBuilder (3.55.0)

See more code actions.
public interface ImageClassificationPredictionParamsOrBuilder extends MessageOrBuilder
MessageOrBuilder

getConfidenceThreshold()

public abstract float getConfidenceThreshold()

The Model only returns predictions with at least this confidence score. Default value is 0.0

float confidence_threshold = 1;

Returns
Type Description
float

The confidenceThreshold.

getMaxPredictions()

public abstract 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
Type Description
int

The maxPredictions.