Class: Google::Apis::LanguageV1beta2::XpsResponseExplanationParameters
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::XpsResponseExplanationParameters
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1beta2/classes.rb,
lib/google/apis/language_v1beta2/representations.rb,
lib/google/apis/language_v1beta2/representations.rb
Instance Attribute Summary collapse
-
#integrated_gradients_attribution ⇒ Google::Apis::LanguageV1beta2::XpsIntegratedGradientsAttribution
An attribution method that computes the Aumann-Shapley value taking advantage of the model's fully differentiable structure.
-
#xrai_attribution ⇒ Google::Apis::LanguageV1beta2::XpsXraiAttribution
An explanation method that redistributes Integrated Gradients attributions to segmented regions, taking advantage of the model's fully differentiable structure.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsResponseExplanationParameters
constructor
A new instance of XpsResponseExplanationParameters.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsResponseExplanationParameters
Returns a new instance of XpsResponseExplanationParameters.
3367 3368 3369 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3367 def initialize(**args) update!(**args) end |
Instance Attribute Details
#integrated_gradients_attribution ⇒ Google::Apis::LanguageV1beta2::XpsIntegratedGradientsAttribution
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
Corresponds to the JSON property integratedGradientsAttribution
3357 3358 3359 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3357 def integrated_gradients_attribution @integrated_gradients_attribution end |
#xrai_attribution ⇒ Google::Apis::LanguageV1beta2::XpsXraiAttribution
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).
Corresponds to the JSON property xraiAttribution
3365 3366 3367 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3365 def xrai_attribution @xrai_attribution end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3372 3373 3374 3375 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3372 def update!(**args) @integrated_gradients_attribution = args[:integrated_gradients_attribution] if args.key?(:integrated_gradients_attribution) @xrai_attribution = args[:xrai_attribution] if args.key?(:xrai_attribution) end |