Class: Google::Apis::LanguageV2::XpsResponseExplanationSpec
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::XpsResponseExplanationSpec
- 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
Specification of Model explanation. Feature-based XAI in AutoML Vision ICN is deprecated, see b/288407203 for context.
Instance Attribute Summary collapse
-
#explanation_type ⇒ String
Explanation type.
-
#metadata ⇒ Google::Apis::LanguageV2::XpsResponseExplanationMetadata
Metadata describing the Model's input and output for explanation.
-
#parameters ⇒ Google::Apis::LanguageV2::XpsResponseExplanationParameters
Parameters that configure explaining of the Model's predictions.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsResponseExplanationSpec
constructor
A new instance of XpsResponseExplanationSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsResponseExplanationSpec
Returns a new instance of XpsResponseExplanationSpec.
3079 3080 3081 |
# File 'lib/google/apis/language_v2/classes.rb', line 3079 def initialize(**args) update!(**args) end |
Instance Attribute Details
#explanation_type ⇒ String
Explanation type. For AutoML Image Classification models, possible values are:
image-integrated-gradients*image-xraiCorresponds to the JSON propertyexplanationType
3067 3068 3069 |
# File 'lib/google/apis/language_v2/classes.rb', line 3067 def explanation_type @explanation_type end |
#metadata ⇒ Google::Apis::LanguageV2::XpsResponseExplanationMetadata
Metadata describing the Model's input and output for explanation.
Corresponds to the JSON property metadata
3072 3073 3074 |
# File 'lib/google/apis/language_v2/classes.rb', line 3072 def @metadata end |
#parameters ⇒ Google::Apis::LanguageV2::XpsResponseExplanationParameters
Parameters that configure explaining of the Model's predictions.
Corresponds to the JSON property parameters
3077 3078 3079 |
# File 'lib/google/apis/language_v2/classes.rb', line 3077 def parameters @parameters end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3084 3085 3086 3087 3088 |
# File 'lib/google/apis/language_v2/classes.rb', line 3084 def update!(**args) @explanation_type = args[:explanation_type] if args.key?(:explanation_type) @metadata = args[:metadata] if args.key?(:metadata) @parameters = args[:parameters] if args.key?(:parameters) end |