Enum ExplanationMetadata.InputMetadata.Visualization.Polarity (1.0.0)

publicenumExplanationMetadata.InputMetadata.Visualization.PolarityextendsEnum<ExplanationMetadata.InputMetadata.Visualization.Polarity>implementsProtocolMessageEnum

Whether to only highlight pixels with positive contributions, negative or both. Defaults to POSITIVE.

Protobuf enum google.cloud.vertexai.v1.ExplanationMetadata.InputMetadata.Visualization.Polarity

Implements

ProtocolMessageEnum

Static Fields

Name Description
BOTH

Shows both positive and negative attributions.

BOTH = 3;

BOTH_VALUE

Shows both positive and negative attributions.

BOTH = 3;

NEGATIVE

Setting polarity to negative highlights areas that does not lead to the models's current prediction.

NEGATIVE = 2;

NEGATIVE_VALUE

Setting polarity to negative highlights areas that does not lead to the models's current prediction.

NEGATIVE = 2;

POLARITY_UNSPECIFIED

Default value. This is the same as POSITIVE.

POLARITY_UNSPECIFIED = 0;

POLARITY_UNSPECIFIED_VALUE

Default value. This is the same as POSITIVE.

POLARITY_UNSPECIFIED = 0;

POSITIVE

Highlights the pixels/outlines that were most influential to the model's prediction.

POSITIVE = 1;

POSITIVE_VALUE

Highlights the pixels/outlines that were most influential to the model's prediction.

POSITIVE = 1;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.