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
Methods
name
Parameter | |
---|---|
Name | Description |
value |
mixed
|
value
Parameter | |
---|---|
Name | Description |
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;