public static final class SmoothGradConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SmoothGradConfig.Builder> implements SmoothGradConfigOrBuilder
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.pdfProtobuf type
google.cloud.aiplatform.v1beta1.SmoothGradConfig| Modifier and Type | Method and Description |
|---|---|
SmoothGradConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SmoothGradConfig |
build() |
SmoothGradConfig |
buildPartial() |
SmoothGradConfig.Builder |
clear() |
SmoothGradConfig.Builder |
clearFeatureNoiseSigma()
This is similar to
[noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma],
but provides additional flexibility.
|
SmoothGradConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SmoothGradConfig.Builder |
clearGradientNoiseSigma() |
SmoothGradConfig.Builder |
clearNoiseSigma()
This is a single float value and will be used to add noise to all the
features.
|
SmoothGradConfig.Builder |
clearNoisySampleCount()
The number of gradient samples to use for
approximation.
|
SmoothGradConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SmoothGradConfig.Builder |
clone() |
SmoothGradConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
FeatureNoiseSigma |
getFeatureNoiseSigma()
This is similar to
[noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma],
but provides additional flexibility.
|
FeatureNoiseSigma.Builder |
getFeatureNoiseSigmaBuilder()
This is similar to
[noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma],
but provides additional flexibility.
|
FeatureNoiseSigmaOrBuilder |
getFeatureNoiseSigmaOrBuilder()
This is similar to
[noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma],
but provides additional flexibility.
|
SmoothGradConfig.GradientNoiseSigmaCase |
getGradientNoiseSigmaCase() |
float |
getNoiseSigma()
This is a single float value and will be used to add noise to all the
features.
|
int |
getNoisySampleCount()
The number of gradient samples to use for
approximation.
|
boolean |
hasFeatureNoiseSigma()
This is similar to
[noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma],
but provides additional flexibility.
|
boolean |
hasNoiseSigma()
This is a single float value and will be used to add noise to all the
features.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SmoothGradConfig.Builder |
mergeFeatureNoiseSigma(FeatureNoiseSigma value)
This is similar to
[noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma],
but provides additional flexibility.
|
SmoothGradConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SmoothGradConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
SmoothGradConfig.Builder |
mergeFrom(SmoothGradConfig other) |
SmoothGradConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SmoothGradConfig.Builder |
setFeatureNoiseSigma(FeatureNoiseSigma.Builder builderForValue)
This is similar to
[noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma],
but provides additional flexibility.
|
SmoothGradConfig.Builder |
setFeatureNoiseSigma(FeatureNoiseSigma value)
This is similar to
[noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma],
but provides additional flexibility.
|
SmoothGradConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SmoothGradConfig.Builder |
setNoiseSigma(float value)
This is a single float value and will be used to add noise to all the
features.
|
SmoothGradConfig.Builder |
setNoisySampleCount(int value)
The number of gradient samples to use for
approximation.
|
SmoothGradConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SmoothGradConfig.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<SmoothGradConfig.Builder>public SmoothGradConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SmoothGradConfig.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<SmoothGradConfig.Builder>public SmoothGradConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SmoothGradConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SmoothGradConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SmoothGradConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SmoothGradConfig.Builder>public SmoothGradConfig.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<SmoothGradConfig.Builder>public SmoothGradConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SmoothGradConfig.Builder>public SmoothGradConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SmoothGradConfig.Builder>public SmoothGradConfig.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<SmoothGradConfig.Builder>public SmoothGradConfig.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<SmoothGradConfig.Builder>public SmoothGradConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SmoothGradConfig.Builder>public SmoothGradConfig.Builder mergeFrom(SmoothGradConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SmoothGradConfig.Builder>public SmoothGradConfig.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<SmoothGradConfig.Builder>IOExceptionpublic SmoothGradConfig.GradientNoiseSigmaCase getGradientNoiseSigmaCase()
getGradientNoiseSigmaCase in interface SmoothGradConfigOrBuilderpublic SmoothGradConfig.Builder clearGradientNoiseSigma()
public boolean hasNoiseSigma()
This is a single float value and will be used to add noise to all the features. Use this field when all features are normalized to have the same distribution: scale to range [0, 1], [-1, 1] or z-scoring, where features are normalized to have 0-mean and 1-variance. Learn more about [normalization](https://developers.google.com/machine-learning/data-prep/transform/normalization). For best results the recommended value is about 10% - 20% of the standard deviation of the input feature. Refer to section 3.2 of the SmoothGrad paper: https://arxiv.org/pdf/1706.03825.pdf. Defaults to 0.1. If the distribution is different per feature, set [feature_noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.feature_noise_sigma] instead for each feature.
float noise_sigma = 1;hasNoiseSigma in interface SmoothGradConfigOrBuilderpublic float getNoiseSigma()
This is a single float value and will be used to add noise to all the features. Use this field when all features are normalized to have the same distribution: scale to range [0, 1], [-1, 1] or z-scoring, where features are normalized to have 0-mean and 1-variance. Learn more about [normalization](https://developers.google.com/machine-learning/data-prep/transform/normalization). For best results the recommended value is about 10% - 20% of the standard deviation of the input feature. Refer to section 3.2 of the SmoothGrad paper: https://arxiv.org/pdf/1706.03825.pdf. Defaults to 0.1. If the distribution is different per feature, set [feature_noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.feature_noise_sigma] instead for each feature.
float noise_sigma = 1;getNoiseSigma in interface SmoothGradConfigOrBuilderpublic SmoothGradConfig.Builder setNoiseSigma(float value)
This is a single float value and will be used to add noise to all the features. Use this field when all features are normalized to have the same distribution: scale to range [0, 1], [-1, 1] or z-scoring, where features are normalized to have 0-mean and 1-variance. Learn more about [normalization](https://developers.google.com/machine-learning/data-prep/transform/normalization). For best results the recommended value is about 10% - 20% of the standard deviation of the input feature. Refer to section 3.2 of the SmoothGrad paper: https://arxiv.org/pdf/1706.03825.pdf. Defaults to 0.1. If the distribution is different per feature, set [feature_noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.feature_noise_sigma] instead for each feature.
float noise_sigma = 1;value - The noiseSigma to set.public SmoothGradConfig.Builder clearNoiseSigma()
This is a single float value and will be used to add noise to all the features. Use this field when all features are normalized to have the same distribution: scale to range [0, 1], [-1, 1] or z-scoring, where features are normalized to have 0-mean and 1-variance. Learn more about [normalization](https://developers.google.com/machine-learning/data-prep/transform/normalization). For best results the recommended value is about 10% - 20% of the standard deviation of the input feature. Refer to section 3.2 of the SmoothGrad paper: https://arxiv.org/pdf/1706.03825.pdf. Defaults to 0.1. If the distribution is different per feature, set [feature_noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.feature_noise_sigma] instead for each feature.
float noise_sigma = 1;public boolean hasFeatureNoiseSigma()
This is similar to [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma], but provides additional flexibility. A separate noise sigma can be provided for each feature, which is useful if their distributions are different. No noise is added to features that are not set. If this field is unset, [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma] will be used for all features.
.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma feature_noise_sigma = 2;hasFeatureNoiseSigma in interface SmoothGradConfigOrBuilderpublic FeatureNoiseSigma getFeatureNoiseSigma()
This is similar to [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma], but provides additional flexibility. A separate noise sigma can be provided for each feature, which is useful if their distributions are different. No noise is added to features that are not set. If this field is unset, [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma] will be used for all features.
.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma feature_noise_sigma = 2;getFeatureNoiseSigma in interface SmoothGradConfigOrBuilderpublic SmoothGradConfig.Builder setFeatureNoiseSigma(FeatureNoiseSigma value)
This is similar to [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma], but provides additional flexibility. A separate noise sigma can be provided for each feature, which is useful if their distributions are different. No noise is added to features that are not set. If this field is unset, [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma] will be used for all features.
.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma feature_noise_sigma = 2;public SmoothGradConfig.Builder setFeatureNoiseSigma(FeatureNoiseSigma.Builder builderForValue)
This is similar to [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma], but provides additional flexibility. A separate noise sigma can be provided for each feature, which is useful if their distributions are different. No noise is added to features that are not set. If this field is unset, [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma] will be used for all features.
.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma feature_noise_sigma = 2;public SmoothGradConfig.Builder mergeFeatureNoiseSigma(FeatureNoiseSigma value)
This is similar to [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma], but provides additional flexibility. A separate noise sigma can be provided for each feature, which is useful if their distributions are different. No noise is added to features that are not set. If this field is unset, [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma] will be used for all features.
.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma feature_noise_sigma = 2;public SmoothGradConfig.Builder clearFeatureNoiseSigma()
This is similar to [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma], but provides additional flexibility. A separate noise sigma can be provided for each feature, which is useful if their distributions are different. No noise is added to features that are not set. If this field is unset, [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma] will be used for all features.
.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma feature_noise_sigma = 2;public FeatureNoiseSigma.Builder getFeatureNoiseSigmaBuilder()
This is similar to [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma], but provides additional flexibility. A separate noise sigma can be provided for each feature, which is useful if their distributions are different. No noise is added to features that are not set. If this field is unset, [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma] will be used for all features.
.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma feature_noise_sigma = 2;public FeatureNoiseSigmaOrBuilder getFeatureNoiseSigmaOrBuilder()
This is similar to [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma], but provides additional flexibility. A separate noise sigma can be provided for each feature, which is useful if their distributions are different. No noise is added to features that are not set. If this field is unset, [noise_sigma][google.cloud.aiplatform.v1beta1.SmoothGradConfig.noise_sigma] will be used for all features.
.google.cloud.aiplatform.v1beta1.FeatureNoiseSigma feature_noise_sigma = 2;getFeatureNoiseSigmaOrBuilder in interface SmoothGradConfigOrBuilderpublic int getNoisySampleCount()
The number of gradient samples to use for approximation. The higher this number, the more accurate the gradient is, but the runtime complexity increases by this factor as well. Valid range of its value is [1, 50]. Defaults to 3.
int32 noisy_sample_count = 3;getNoisySampleCount in interface SmoothGradConfigOrBuilderpublic SmoothGradConfig.Builder setNoisySampleCount(int value)
The number of gradient samples to use for approximation. The higher this number, the more accurate the gradient is, but the runtime complexity increases by this factor as well. Valid range of its value is [1, 50]. Defaults to 3.
int32 noisy_sample_count = 3;value - The noisySampleCount to set.public SmoothGradConfig.Builder clearNoisySampleCount()
The number of gradient samples to use for approximation. The higher this number, the more accurate the gradient is, but the runtime complexity increases by this factor as well. Valid range of its value is [1, 50]. Defaults to 3.
int32 noisy_sample_count = 3;public final SmoothGradConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SmoothGradConfig.Builder>public final SmoothGradConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SmoothGradConfig.Builder>Copyright © 2024 Google LLC. All rights reserved.