SmoothGradConfig class final
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
- Inheritance
-
- Object
- ProtoMessage
- SmoothGradConfig
Constructors
- SmoothGradConfig({double? noiseSigma, FeatureNoiseSigma? featureNoiseSigma, int noisySampleCount = 0})
-
SmoothGradConfig.fromJson(Map<
String, dynamic> json) -
factory
Properties
- featureNoiseSigma → FeatureNoiseSigma?
-
This is similar to
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_sigmawill be used for all features.final - hashCode → int
-
The hash code for this object.
no setterinherited
- noiseSigma → double?
-
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, 1or z-scoring, where features are normalized to have 0-mean and 1-variance. Learn more about normalization.final - noisySampleCount → int
-
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.final - qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String