public static final class ExplanationMetadata.InputMetadata.Visualization extends GeneratedMessageV3 implements ExplanationMetadata.InputMetadata.VisualizationOrBuilder
Visualization configurations for image explanation.
Protobuf type
google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization
Static Fields
public static final int CLIP_PERCENT_LOWERBOUND_FIELD_NUMBER
Field Value
public static final int CLIP_PERCENT_UPPERBOUND_FIELD_NUMBER
Field Value
public static final int COLOR_MAP_FIELD_NUMBER
Field Value
public static final int OVERLAY_TYPE_FIELD_NUMBER
Field Value
public static final int POLARITY_FIELD_NUMBER
Field Value
public static final int TYPE_FIELD_NUMBER
Field Value
Static Methods
public static ExplanationMetadata.InputMetadata.Visualization getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static ExplanationMetadata.InputMetadata.Visualization.Builder newBuilder()
Returns
public static ExplanationMetadata.InputMetadata.Visualization.Builder newBuilder(ExplanationMetadata.InputMetadata.Visualization prototype)
Parameter
Returns
public static ExplanationMetadata.InputMetadata.Visualization parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ExplanationMetadata.InputMetadata.Visualization parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<ExplanationMetadata.InputMetadata.Visualization> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public float getClipPercentLowerbound()
Excludes attributions below the specified percentile, from the
highlighted areas. Defaults to 62.
float clip_percent_lowerbound = 5;
Returns
Type | Description |
float | The clipPercentLowerbound.
|
public float getClipPercentUpperbound()
Excludes attributions above the specified percentile from the
highlighted areas. Using the clip_percent_upperbound and
clip_percent_lowerbound together can be useful for filtering out noise
and making it easier to see areas of strong attribution. Defaults to
99.9.
float clip_percent_upperbound = 4;
Returns
Type | Description |
float | The clipPercentUpperbound.
|
public ExplanationMetadata.InputMetadata.Visualization.ColorMap getColorMap()
The color scheme used for the highlighted areas.
Defaults to PINK_GREEN for
Integrated Gradients attribution,
which shows positive attributions in green and negative in pink.
Defaults to VIRIDIS for
XRAI attribution, which
highlights the most influential regions in yellow and the least
influential in blue.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap color_map = 3;
Returns
public int getColorMapValue()
The color scheme used for the highlighted areas.
Defaults to PINK_GREEN for
Integrated Gradients attribution,
which shows positive attributions in green and negative in pink.
Defaults to VIRIDIS for
XRAI attribution, which
highlights the most influential regions in yellow and the least
influential in blue.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap color_map = 3;
Returns
Type | Description |
int | The enum numeric value on the wire for colorMap.
|
public ExplanationMetadata.InputMetadata.Visualization getDefaultInstanceForType()
Returns
public ExplanationMetadata.InputMetadata.Visualization.OverlayType getOverlayType()
How the original image is displayed in the visualization.
Adjusting the overlay can help increase visual clarity if the original
image makes it difficult to view the visualization. Defaults to NONE.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType overlay_type = 6;
Returns
public int getOverlayTypeValue()
How the original image is displayed in the visualization.
Adjusting the overlay can help increase visual clarity if the original
image makes it difficult to view the visualization. Defaults to NONE.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType overlay_type = 6;
Returns
Type | Description |
int | The enum numeric value on the wire for overlayType.
|
public Parser<ExplanationMetadata.InputMetadata.Visualization> getParserForType()
Returns
Overrides
public ExplanationMetadata.InputMetadata.Visualization.Polarity getPolarity()
Whether to only highlight pixels with positive contributions, negative
or both. Defaults to POSITIVE.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity polarity = 2;
Returns
public int getPolarityValue()
Whether to only highlight pixels with positive contributions, negative
or both. Defaults to POSITIVE.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity polarity = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for polarity.
|
public int getSerializedSize()
Returns
Overrides
public ExplanationMetadata.InputMetadata.Visualization.Type getType()
Type of the image visualization. Only applicable to
Integrated Gradients attribution.
OUTLINES shows regions of attribution, while PIXELS shows per-pixel
attribution. Defaults to OUTLINES.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type type = 1;
Returns
public int getTypeValue()
Type of the image visualization. Only applicable to
Integrated Gradients attribution.
OUTLINES shows regions of attribution, while PIXELS shows per-pixel
attribution. Defaults to OUTLINES.
.google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type type = 1;
Returns
Type | Description |
int | The enum numeric value on the wire for type.
|
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public ExplanationMetadata.InputMetadata.Visualization.Builder newBuilderForType()
Returns
protected ExplanationMetadata.InputMetadata.Visualization.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public ExplanationMetadata.InputMetadata.Visualization.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions