Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaModelevaluationMetricsGeneralTextGenerationEvaluationMetrics
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaModelevaluationMetricsGeneralTextGenerationEvaluationMetrics
- 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
Instance Attribute Summary collapse
-
#bleu ⇒ Float
BLEU (bilingual evaluation understudy) scores based on sacrebleu implementation.
-
#rouge_l_sum ⇒ Float
ROUGE-L (Longest Common Subsequence) scoring at summary level.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaModelevaluationMetricsGeneralTextGenerationEvaluationMetrics
constructor
A new instance of GoogleCloudAiplatformV1SchemaModelevaluationMetricsGeneralTextGenerationEvaluationMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaModelevaluationMetricsGeneralTextGenerationEvaluationMetrics
Returns a new instance of GoogleCloudAiplatformV1SchemaModelevaluationMetricsGeneralTextGenerationEvaluationMetrics.
23519 23520 23521 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23519 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bleu ⇒ Float
BLEU (bilingual evaluation understudy) scores based on sacrebleu
implementation.
Corresponds to the JSON property bleu
23512 23513 23514 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23512 def bleu @bleu end |
#rouge_l_sum ⇒ Float
ROUGE-L (Longest Common Subsequence) scoring at summary level.
Corresponds to the JSON property rougeLSum
23517 23518 23519 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23517 def rouge_l_sum @rouge_l_sum end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
23524 23525 23526 23527 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 23524 def update!(**args) @bleu = args[:bleu] if args.key?(:bleu) @rouge_l_sum = args[:rouge_l_sum] if args.key?(:rouge_l_sum) end |