Class: Google::Apis::MlV1::GoogleCloudMlV1XraiAttribution
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1XraiAttribution
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/ml_v1/classes.rb,
generated/google/apis/ml_v1/representations.rb,
generated/google/apis/ml_v1/representations.rb
Overview
Attributes credit by computing the XRAI taking advantage of the model's fully differentiable structure. Refer to this paper for more details: https://arxiv. org/abs/1906.02825 Currently only implemented for models with natural image inputs.
Instance Attribute Summary collapse
-
#num_integral_steps ⇒ Fixnum
Number of steps for approximating the path integral.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1XraiAttribution
constructor
A new instance of GoogleCloudMlV1XraiAttribution.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1XraiAttribution
Returns a new instance of GoogleCloudMlV1XraiAttribution.
3266 3267 3268 |
# File 'generated/google/apis/ml_v1/classes.rb', line 3266 def initialize(**args) update!(**args) end |
Instance Attribute Details
#num_integral_steps ⇒ Fixnum
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.
Corresponds to the JSON property numIntegralSteps
3264 3265 3266 |
# File 'generated/google/apis/ml_v1/classes.rb', line 3264 def num_integral_steps @num_integral_steps end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3271 3272 3273 |
# File 'generated/google/apis/ml_v1/classes.rb', line 3271 def update!(**args) @num_integral_steps = args[:num_integral_steps] if args.key?(:num_integral_steps) end |