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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int CLIP_PERCENT_LOWERBOUND_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int CLIP_PERCENT_UPPERBOUND_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int COLOR_MAP_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int OVERLAY_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int POLARITY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static ExplanationMetadata.InputMetadata.Visualization getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static ExplanationMetadata.InputMetadata.Visualization.Builder newBuilder()
public static ExplanationMetadata.InputMetadata.Visualization.Builder newBuilder(ExplanationMetadata.InputMetadata.Visualization prototype)
public static ExplanationMetadata.InputMetadata.Visualization parseDelimitedFrom(InputStream input)
public static ExplanationMetadata.InputMetadata.Visualization parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(ByteString data)
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(CodedInputStream input)
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(InputStream input)
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(ByteBuffer data)
public static ExplanationMetadata.InputMetadata.Visualization parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<ExplanationMetadata.InputMetadata.Visualization> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
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;
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()
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;
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()
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;
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 |
Type |
Description |
int |
|
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;
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.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ExplanationMetadata.InputMetadata.Visualization.Builder newBuilderForType()
protected ExplanationMetadata.InputMetadata.Visualization.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public ExplanationMetadata.InputMetadata.Visualization.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides