Class: Google::Apis::LanguageV1::XpsResponseExplanationSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/language_v1/classes.rb,
lib/google/apis/language_v1/representations.rb,
lib/google/apis/language_v1/representations.rb

Overview

Specification of Model explanation. Feature-based XAI in AutoML Vision ICN is deprecated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsResponseExplanationSpec

Returns a new instance of XpsResponseExplanationSpec.



3380
3381
3382
# File 'lib/google/apis/language_v1/classes.rb', line 3380

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)


3368
3369
3370
# File 'lib/google/apis/language_v1/classes.rb', line 3368

def explanation_type
  @explanation_type
end

#metadataGoogle::Apis::LanguageV1::XpsResponseExplanationMetadata

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



3373
3374
3375
# File 'lib/google/apis/language_v1/classes.rb', line 3373

def 
  @metadata
end

#parametersGoogle::Apis::LanguageV1::XpsResponseExplanationParameters

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



3378
3379
3380
# File 'lib/google/apis/language_v1/classes.rb', line 3378

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3385
3386
3387
3388
3389
# File 'lib/google/apis/language_v1/classes.rb', line 3385

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