Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsGeneralTextGenerationEvaluationMetrics
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsGeneralTextGenerationEvaluationMetrics
- 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
-
#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) ⇒ GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsGeneralTextGenerationEvaluationMetrics
constructor
A new instance of GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsGeneralTextGenerationEvaluationMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsGeneralTextGenerationEvaluationMetrics
Returns a new instance of GoogleCloudAiplatformV1beta1SchemaModelevaluationMetricsGeneralTextGenerationEvaluationMetrics.
51132 51133 51134 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 51132 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
51125 51126 51127 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 51125 def bleu @bleu end |
#rouge_l_sum ⇒ Float
ROUGE-L (Longest Common Subsequence) scoring at summary level.
Corresponds to the JSON property rougeLSum
51130 51131 51132 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 51130 def rouge_l_sum @rouge_l_sum end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
51137 51138 51139 51140 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 51137 def update!(**args) @bleu = args[:bleu] if args.key?(:bleu) @rouge_l_sum = args[:rouge_l_sum] if args.key?(:rouge_l_sum) end |