Class: Google::Apis::LanguageV1::XpsIntegratedGradientsAttribution
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1::XpsIntegratedGradientsAttribution
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1/classes.rb,
lib/google/apis/language_v1/representations.rb,
lib/google/apis/language_v1/representations.rb
Overview
An attribution method that computes the Aumann-Shapley value taking advantage of the model's fully differentiable structure. Refer to this paper for more details: https://arxiv.org/abs/1703.01365
Instance Attribute Summary collapse
-
#step_count ⇒ Fixnum
The number of steps for approximating the path integral.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsIntegratedGradientsAttribution
constructor
A new instance of XpsIntegratedGradientsAttribution.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsIntegratedGradientsAttribution
Returns a new instance of XpsIntegratedGradientsAttribution.
3010 3011 3012 |
# File 'lib/google/apis/language_v1/classes.rb', line 3010 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 within the
desired error range. Valid range of its value is [1, 100], inclusively.
Corresponds to the JSON property stepCount
3008 3009 3010 |
# File 'lib/google/apis/language_v1/classes.rb', line 3008 def step_count @step_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3015 3016 3017 |
# File 'lib/google/apis/language_v1/classes.rb', line 3015 def update!(**args) @step_count = args[:step_count] if args.key?(:step_count) end |