Class: Google::Apis::LanguageV2::XpsResponseExplanationSpec

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsResponseExplanationSpec

Returns a new instance of XpsResponseExplanationSpec.



3093
3094
3095
# File 'lib/google/apis/language_v2/classes.rb', line 3093

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#explanation_typeString

Explanation type. For AutoML Image Classification models, possible values are:

  • image-integrated-gradients * image-xrai Corresponds to the JSON property explanationType

Returns:

  • (String)


3081
3082
3083
# File 'lib/google/apis/language_v2/classes.rb', line 3081

def explanation_type
  @explanation_type
end

#metadataGoogle::Apis::LanguageV2::XpsResponseExplanationMetadata

Metadata describing the Model's input and output for explanation. Corresponds to the JSON property metadata



3086
3087
3088
# File 'lib/google/apis/language_v2/classes.rb', line 3086

def 
  @metadata
end

#parametersGoogle::Apis::LanguageV2::XpsResponseExplanationParameters

Parameters that configure explaining of the Model's predictions. Corresponds to the JSON property parameters



3091
3092
3093
# File 'lib/google/apis/language_v2/classes.rb', line 3091

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3098
3099
3100
3101
3102
# File 'lib/google/apis/language_v2/classes.rb', line 3098

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