Class: Google::Apis::LanguageV2::XpsXraiAttribution
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::XpsXraiAttribution
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v2/classes.rb,
lib/google/apis/language_v2/representations.rb,
lib/google/apis/language_v2/representations.rb
Overview
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 Only supports image Models (modality is IMAGE).
Instance Attribute Summary collapse
-
#step_count ⇒ Fixnum
The number of steps for approximating the path integral.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsXraiAttribution
constructor
A new instance of XpsXraiAttribution.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsXraiAttribution
Returns a new instance of XpsXraiAttribution.
5194 5195 5196 |
# File 'lib/google/apis/language_v2/classes.rb', line 5194 def initialize(**args) update!(**args) end |
Instance Attribute Details
#step_count ⇒ Fixnum
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.
Corresponds to the JSON property stepCount
5192 5193 5194 |
# File 'lib/google/apis/language_v2/classes.rb', line 5192 def step_count @step_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5199 5200 5201 |
# File 'lib/google/apis/language_v2/classes.rb', line 5199 def update!(**args) @step_count = args[:step_count] if args.key?(:step_count) end |