Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetricxSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetricxSpec
- 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
-
#source_language ⇒ String
Optional.
-
#target_language ⇒ String
Optional.
-
#version ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1MetricxSpec
constructor
A new instance of GoogleCloudAiplatformV1MetricxSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1MetricxSpec
Returns a new instance of GoogleCloudAiplatformV1MetricxSpec.
15790 15791 15792 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15790 def initialize(**args) update!(**args) end |
Instance Attribute Details
#source_language ⇒ String
Optional. Source language in BCP-47 format.
Corresponds to the JSON property sourceLanguage
15777 15778 15779 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15777 def source_language @source_language end |
#target_language ⇒ String
Optional. Target language in BCP-47 format. Covers both prediction and
reference.
Corresponds to the JSON property targetLanguage
15783 15784 15785 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15783 def target_language @target_language end |
#version ⇒ String
Required. Which version to use for evaluation.
Corresponds to the JSON property version
15788 15789 15790 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15788 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15795 15796 15797 15798 15799 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15795 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 |