polarity property

String? polarity
getter/setter pair

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

Defaults to POSITIVE. Possible string values are:

  • "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.

Implementation

core.String? polarity;