Google Cloud Ai Platform V1 Client - Class Polarity (0.27.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class Polarity.

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

Protobuf type google.cloud.aiplatform.v1.ExplanationMetadata.InputMetadata.Visualization.Polarity

Namespace

Google \ Cloud \ AIPlatform \ V1 \ ExplanationMetadata \ InputMetadata \ Visualization

Methods

static::name

Parameter
NameDescription
value mixed

static::value

Parameter
NameDescription
name mixed

Constants

POLARITY_UNSPECIFIED

Value: 0

Default value. This is the same as POSITIVE.

Generated from protobuf enum POLARITY_UNSPECIFIED = 0;

POSITIVE

Value: 1

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

Generated from protobuf enum POSITIVE = 1;

NEGATIVE

Value: 2

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

Generated from protobuf enum NEGATIVE = 2;

BOTH

Value: 3

Shows both positive and negative attributions.

Generated from protobuf enum BOTH = 3;