public static final class XraiAttribution.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<XraiAttribution.Builder> implements XraiAttributionOrBuilder
An explanation method that redistributes Integrated Gradients attributions to segmented regions, taking advantage of the model's fully differentiable structure. Refer to this paper for more details: https://arxiv.org/abs/1906.02825 Supported only by image Models.Protobuf type
google.cloud.vertexai.v1.XraiAttribution| Modifier and Type | Method and Description |
|---|---|
XraiAttribution.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
XraiAttribution |
build() |
XraiAttribution |
buildPartial() |
XraiAttribution.Builder |
clear() |
XraiAttribution.Builder |
clearBlurBaselineConfig()
Config for XRAI with blur baseline.
|
XraiAttribution.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
XraiAttribution.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
XraiAttribution.Builder |
clearSmoothGradConfig()
Config for SmoothGrad approximation of gradients.
|
XraiAttribution.Builder |
clearStepCount()
Required.
|
XraiAttribution.Builder |
clone() |
BlurBaselineConfig |
getBlurBaselineConfig()
Config for XRAI with blur baseline.
|
BlurBaselineConfig.Builder |
getBlurBaselineConfigBuilder()
Config for XRAI with blur baseline.
|
BlurBaselineConfigOrBuilder |
getBlurBaselineConfigOrBuilder()
Config for XRAI with blur baseline.
|
XraiAttribution |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
SmoothGradConfig |
getSmoothGradConfig()
Config for SmoothGrad approximation of gradients.
|
SmoothGradConfig.Builder |
getSmoothGradConfigBuilder()
Config for SmoothGrad approximation of gradients.
|
SmoothGradConfigOrBuilder |
getSmoothGradConfigOrBuilder()
Config for SmoothGrad approximation of gradients.
|
int |
getStepCount()
Required.
|
boolean |
hasBlurBaselineConfig()
Config for XRAI with blur baseline.
|
boolean |
hasSmoothGradConfig()
Config for SmoothGrad approximation of gradients.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
XraiAttribution.Builder |
mergeBlurBaselineConfig(BlurBaselineConfig value)
Config for XRAI with blur baseline.
|
XraiAttribution.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
XraiAttribution.Builder |
mergeFrom(com.google.protobuf.Message other) |
XraiAttribution.Builder |
mergeFrom(XraiAttribution other) |
XraiAttribution.Builder |
mergeSmoothGradConfig(SmoothGradConfig value)
Config for SmoothGrad approximation of gradients.
|
XraiAttribution.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
XraiAttribution.Builder |
setBlurBaselineConfig(BlurBaselineConfig.Builder builderForValue)
Config for XRAI with blur baseline.
|
XraiAttribution.Builder |
setBlurBaselineConfig(BlurBaselineConfig value)
Config for XRAI with blur baseline.
|
XraiAttribution.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
XraiAttribution.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
XraiAttribution.Builder |
setSmoothGradConfig(SmoothGradConfig.Builder builderForValue)
Config for SmoothGrad approximation of gradients.
|
XraiAttribution.Builder |
setSmoothGradConfig(SmoothGradConfig value)
Config for SmoothGrad approximation of gradients.
|
XraiAttribution.Builder |
setStepCount(int value)
Required.
|
XraiAttribution.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<XraiAttribution.Builder>public XraiAttribution.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<XraiAttribution.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<XraiAttribution.Builder>public XraiAttribution getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic XraiAttribution build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic XraiAttribution buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic XraiAttribution.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<XraiAttribution.Builder>public XraiAttribution.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<XraiAttribution.Builder>public XraiAttribution.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<XraiAttribution.Builder>public XraiAttribution.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<XraiAttribution.Builder>public XraiAttribution.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<XraiAttribution.Builder>public XraiAttribution.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<XraiAttribution.Builder>public XraiAttribution.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<XraiAttribution.Builder>public XraiAttribution.Builder mergeFrom(XraiAttribution other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<XraiAttribution.Builder>public XraiAttribution.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<XraiAttribution.Builder>IOExceptionpublic int getStepCount()
Required. The number of steps for approximating the path integral. A good value to start is 50 and gradually increase until the sum to diff property is met within the desired error range. Valid range of its value is [1, 100], inclusively.
int32 step_count = 1 [(.google.api.field_behavior) = REQUIRED];getStepCount in interface XraiAttributionOrBuilderpublic XraiAttribution.Builder setStepCount(int value)
Required. The number of steps for approximating the path integral. A good value to start is 50 and gradually increase until the sum to diff property is met within the desired error range. Valid range of its value is [1, 100], inclusively.
int32 step_count = 1 [(.google.api.field_behavior) = REQUIRED];value - The stepCount to set.public XraiAttribution.Builder clearStepCount()
Required. The number of steps for approximating the path integral. A good value to start is 50 and gradually increase until the sum to diff property is met within the desired error range. Valid range of its value is [1, 100], inclusively.
int32 step_count = 1 [(.google.api.field_behavior) = REQUIRED];public boolean hasSmoothGradConfig()
Config for SmoothGrad approximation of gradients. When enabled, the gradients are approximated by averaging the gradients from noisy samples in the vicinity of the inputs. Adding noise can help improve the computed gradients. Refer to this paper for more details: https://arxiv.org/pdf/1706.03825.pdf
.google.cloud.vertexai.v1.SmoothGradConfig smooth_grad_config = 2;hasSmoothGradConfig in interface XraiAttributionOrBuilderpublic SmoothGradConfig getSmoothGradConfig()
Config for SmoothGrad approximation of gradients. When enabled, the gradients are approximated by averaging the gradients from noisy samples in the vicinity of the inputs. Adding noise can help improve the computed gradients. Refer to this paper for more details: https://arxiv.org/pdf/1706.03825.pdf
.google.cloud.vertexai.v1.SmoothGradConfig smooth_grad_config = 2;getSmoothGradConfig in interface XraiAttributionOrBuilderpublic XraiAttribution.Builder setSmoothGradConfig(SmoothGradConfig value)
Config for SmoothGrad approximation of gradients. When enabled, the gradients are approximated by averaging the gradients from noisy samples in the vicinity of the inputs. Adding noise can help improve the computed gradients. Refer to this paper for more details: https://arxiv.org/pdf/1706.03825.pdf
.google.cloud.vertexai.v1.SmoothGradConfig smooth_grad_config = 2;public XraiAttribution.Builder setSmoothGradConfig(SmoothGradConfig.Builder builderForValue)
Config for SmoothGrad approximation of gradients. When enabled, the gradients are approximated by averaging the gradients from noisy samples in the vicinity of the inputs. Adding noise can help improve the computed gradients. Refer to this paper for more details: https://arxiv.org/pdf/1706.03825.pdf
.google.cloud.vertexai.v1.SmoothGradConfig smooth_grad_config = 2;public XraiAttribution.Builder mergeSmoothGradConfig(SmoothGradConfig value)
Config for SmoothGrad approximation of gradients. When enabled, the gradients are approximated by averaging the gradients from noisy samples in the vicinity of the inputs. Adding noise can help improve the computed gradients. Refer to this paper for more details: https://arxiv.org/pdf/1706.03825.pdf
.google.cloud.vertexai.v1.SmoothGradConfig smooth_grad_config = 2;public XraiAttribution.Builder clearSmoothGradConfig()
Config for SmoothGrad approximation of gradients. When enabled, the gradients are approximated by averaging the gradients from noisy samples in the vicinity of the inputs. Adding noise can help improve the computed gradients. Refer to this paper for more details: https://arxiv.org/pdf/1706.03825.pdf
.google.cloud.vertexai.v1.SmoothGradConfig smooth_grad_config = 2;public SmoothGradConfig.Builder getSmoothGradConfigBuilder()
Config for SmoothGrad approximation of gradients. When enabled, the gradients are approximated by averaging the gradients from noisy samples in the vicinity of the inputs. Adding noise can help improve the computed gradients. Refer to this paper for more details: https://arxiv.org/pdf/1706.03825.pdf
.google.cloud.vertexai.v1.SmoothGradConfig smooth_grad_config = 2;public SmoothGradConfigOrBuilder getSmoothGradConfigOrBuilder()
Config for SmoothGrad approximation of gradients. When enabled, the gradients are approximated by averaging the gradients from noisy samples in the vicinity of the inputs. Adding noise can help improve the computed gradients. Refer to this paper for more details: https://arxiv.org/pdf/1706.03825.pdf
.google.cloud.vertexai.v1.SmoothGradConfig smooth_grad_config = 2;getSmoothGradConfigOrBuilder in interface XraiAttributionOrBuilderpublic boolean hasBlurBaselineConfig()
Config for XRAI with blur baseline. When enabled, a linear path from the maximally blurred image to the input image is created. Using a blurred baseline instead of zero (black image) is motivated by the BlurIG approach explained here: https://arxiv.org/abs/2004.03383
.google.cloud.vertexai.v1.BlurBaselineConfig blur_baseline_config = 3;hasBlurBaselineConfig in interface XraiAttributionOrBuilderpublic BlurBaselineConfig getBlurBaselineConfig()
Config for XRAI with blur baseline. When enabled, a linear path from the maximally blurred image to the input image is created. Using a blurred baseline instead of zero (black image) is motivated by the BlurIG approach explained here: https://arxiv.org/abs/2004.03383
.google.cloud.vertexai.v1.BlurBaselineConfig blur_baseline_config = 3;getBlurBaselineConfig in interface XraiAttributionOrBuilderpublic XraiAttribution.Builder setBlurBaselineConfig(BlurBaselineConfig value)
Config for XRAI with blur baseline. When enabled, a linear path from the maximally blurred image to the input image is created. Using a blurred baseline instead of zero (black image) is motivated by the BlurIG approach explained here: https://arxiv.org/abs/2004.03383
.google.cloud.vertexai.v1.BlurBaselineConfig blur_baseline_config = 3;public XraiAttribution.Builder setBlurBaselineConfig(BlurBaselineConfig.Builder builderForValue)
Config for XRAI with blur baseline. When enabled, a linear path from the maximally blurred image to the input image is created. Using a blurred baseline instead of zero (black image) is motivated by the BlurIG approach explained here: https://arxiv.org/abs/2004.03383
.google.cloud.vertexai.v1.BlurBaselineConfig blur_baseline_config = 3;public XraiAttribution.Builder mergeBlurBaselineConfig(BlurBaselineConfig value)
Config for XRAI with blur baseline. When enabled, a linear path from the maximally blurred image to the input image is created. Using a blurred baseline instead of zero (black image) is motivated by the BlurIG approach explained here: https://arxiv.org/abs/2004.03383
.google.cloud.vertexai.v1.BlurBaselineConfig blur_baseline_config = 3;public XraiAttribution.Builder clearBlurBaselineConfig()
Config for XRAI with blur baseline. When enabled, a linear path from the maximally blurred image to the input image is created. Using a blurred baseline instead of zero (black image) is motivated by the BlurIG approach explained here: https://arxiv.org/abs/2004.03383
.google.cloud.vertexai.v1.BlurBaselineConfig blur_baseline_config = 3;public BlurBaselineConfig.Builder getBlurBaselineConfigBuilder()
Config for XRAI with blur baseline. When enabled, a linear path from the maximally blurred image to the input image is created. Using a blurred baseline instead of zero (black image) is motivated by the BlurIG approach explained here: https://arxiv.org/abs/2004.03383
.google.cloud.vertexai.v1.BlurBaselineConfig blur_baseline_config = 3;public BlurBaselineConfigOrBuilder getBlurBaselineConfigOrBuilder()
Config for XRAI with blur baseline. When enabled, a linear path from the maximally blurred image to the input image is created. Using a blurred baseline instead of zero (black image) is motivated by the BlurIG approach explained here: https://arxiv.org/abs/2004.03383
.google.cloud.vertexai.v1.BlurBaselineConfig blur_baseline_config = 3;getBlurBaselineConfigOrBuilder in interface XraiAttributionOrBuilderpublic final XraiAttribution.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<XraiAttribution.Builder>public final XraiAttribution.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<XraiAttribution.Builder>Copyright © 2024 Google LLC. All rights reserved.