Class: Google::Apis::LanguageV1::XpsResponseExplanationMetadataInputMetadata

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

Metadata of the input of a feature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsResponseExplanationMetadataInputMetadata

Returns a new instance of XpsResponseExplanationMetadataInputMetadata.



3297
3298
3299
# File 'lib/google/apis/language_v1/classes.rb', line 3297

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

Instance Attribute Details

#input_tensor_nameString

Name of the input tensor for this model. Only needed in train response. Corresponds to the JSON property inputTensorName

Returns:

  • (String)


3285
3286
3287
# File 'lib/google/apis/language_v1/classes.rb', line 3285

def input_tensor_name
  @input_tensor_name
end

#modalityString

Modality of the feature. Valid values are: numeric, image. Defaults to numeric. Corresponds to the JSON property modality

Returns:

  • (String)


3290
3291
3292
# File 'lib/google/apis/language_v1/classes.rb', line 3290

def modality
  @modality
end

#visualization_configGoogle::Apis::LanguageV1::XpsVisualization

Visualization configurations for image explanation. Corresponds to the JSON property visualizationConfig



3295
3296
3297
# File 'lib/google/apis/language_v1/classes.rb', line 3295

def visualization_config
  @visualization_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3302
3303
3304
3305
3306
# File 'lib/google/apis/language_v1/classes.rb', line 3302

def update!(**args)
  @input_tensor_name = args[:input_tensor_name] if args.key?(:input_tensor_name)
  @modality = args[:modality] if args.key?(:modality)
  @visualization_config = args[:visualization_config] if args.key?(:visualization_config)
end