Interface ImageClassificationPredictionParamsOrBuilder (3.42.0)

public interface ImageClassificationPredictionParamsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

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
TypeDescription
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
TypeDescription
int

The maxPredictions.