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.
3362 3363 3364 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3362 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
3352 3353 3354 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3352 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
3360 3361 3362 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3360 def xrai_attribution @xrai_attribution end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3367 3368 3369 3370 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3367 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 |