Class Polarity (1.51.0)

Polarity(value)

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

Enums

Name Description
POLARITY_UNSPECIFIED Default value. This is the same as POSITIVE.
POSITIVE Highlights the pixels/outlines that were most influential to the model's prediction.
NEGATIVE Setting polarity to negative highlights areas that does not lead to the models's current prediction.
BOTH Shows both positive and negative attributions.

Methods

Polarity

Polarity(value)

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