Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsGeneralTextGenerationEvaluationMetrics

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsGeneralTextGenerationEvaluationMetrics

Returns a new instance of GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsGeneralTextGenerationEvaluationMetrics.



21623
21624
21625
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21623

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

Instance Attribute Details

#bleuFloat

BLEU (bilingual evaluation understudy) scores based on sacrebleu implementation. Corresponds to the JSON property bleu

Returns:

  • (Float)


21616
21617
21618
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21616

def bleu
  @bleu
end

#rouge_l_sumFloat

ROUGE-L (Longest Common Subsequence) scoring at summary level. Corresponds to the JSON property rougeLSum

Returns:

  • (Float)


21621
21622
21623
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21621

def rouge_l_sum
  @rouge_l_sum
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21628
21629
21630
21631
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21628

def update!(**args)
  @bleu = args[:bleu] if args.key?(:bleu)
  @rouge_l_sum = args[:rouge_l_sum] if args.key?(:rouge_l_sum)
end