Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetricxSpec

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

Overview

Spec for MetricX metric.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1MetricxSpec

Returns a new instance of GoogleCloudAiplatformV1MetricxSpec.



16861
16862
16863
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16861

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

Instance Attribute Details

#source_languageString

Optional. Source language in BCP-47 format. Corresponds to the JSON property sourceLanguage

Returns:

  • (String)


16848
16849
16850
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16848

def source_language
  @source_language
end

#target_languageString

Optional. Target language in BCP-47 format. Covers both prediction and reference. Corresponds to the JSON property targetLanguage

Returns:

  • (String)


16854
16855
16856
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16854

def target_language
  @target_language
end

#versionString

Required. Which version to use for evaluation. Corresponds to the JSON property version

Returns:

  • (String)


16859
16860
16861
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16859

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16866
16867
16868
16869
16870
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 16866

def update!(**args)
  @source_language = args[:source_language] if args.key?(:source_language)
  @target_language = args[:target_language] if args.key?(:target_language)
  @version = args[:version] if args.key?(:version)
end