Class: Google::Apis::LanguageV2::XpsResponseExplanationParameters
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::XpsResponseExplanationParameters
- 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
Instance Attribute Summary collapse
-
#integrated_gradients_attribution ⇒ Google::Apis::LanguageV2::XpsIntegratedGradientsAttribution
An attribution method that computes the Aumann-Shapley value taking advantage of the model's fully differentiable structure.
-
#xrai_attribution ⇒ Google::Apis::LanguageV2::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.
3061 3062 3063 |
# File 'lib/google/apis/language_v2/classes.rb', line 3061 def initialize(**args) update!(**args) end |
Instance Attribute Details
#integrated_gradients_attribution ⇒ Google::Apis::LanguageV2::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
3051 3052 3053 |
# File 'lib/google/apis/language_v2/classes.rb', line 3051 def integrated_gradients_attribution @integrated_gradients_attribution end |
#xrai_attribution ⇒ Google::Apis::LanguageV2::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
3059 3060 3061 |
# File 'lib/google/apis/language_v2/classes.rb', line 3059 def xrai_attribution @xrai_attribution end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3066 3067 3068 3069 |
# File 'lib/google/apis/language_v2/classes.rb', line 3066 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 |