Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CometSpec

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

Overview

Spec for Comet metric.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1CometSpec

Returns a new instance of GoogleCloudAiplatformV1beta1CometSpec.



5038
5039
5040
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5038

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)


5025
5026
5027
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5025

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)


5031
5032
5033
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5031

def target_language
  @target_language
end

#versionString

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

Returns:

  • (String)


5036
5037
5038
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5036

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5043
5044
5045
5046
5047
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5043

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