Class: Google::Apis::LanguageV2::XpsTranslationEvaluationMetrics
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::XpsTranslationEvaluationMetrics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v2/classes.rb,
lib/google/apis/language_v2/representations.rb,
lib/google/apis/language_v2/representations.rb
Overview
Evaluation metrics for the dataset.
Instance Attribute Summary collapse
-
#base_bleu_score ⇒ Float
BLEU score for base model.
-
#bleu_score ⇒ Float
BLEU score.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsTranslationEvaluationMetrics
constructor
A new instance of XpsTranslationEvaluationMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsTranslationEvaluationMetrics
Returns a new instance of XpsTranslationEvaluationMetrics.
4581 4582 4583 |
# File 'lib/google/apis/language_v2/classes.rb', line 4581 def initialize(**args) update!(**args) end |
Instance Attribute Details
#base_bleu_score ⇒ Float
BLEU score for base model.
Corresponds to the JSON property baseBleuScore
4574 4575 4576 |
# File 'lib/google/apis/language_v2/classes.rb', line 4574 def base_bleu_score @base_bleu_score end |
#bleu_score ⇒ Float
BLEU score.
Corresponds to the JSON property bleuScore
4579 4580 4581 |
# File 'lib/google/apis/language_v2/classes.rb', line 4579 def bleu_score @bleu_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4586 4587 4588 4589 |
# File 'lib/google/apis/language_v2/classes.rb', line 4586 def update!(**args) @base_bleu_score = args[:base_bleu_score] if args.key?(:base_bleu_score) @bleu_score = args[:bleu_score] if args.key?(:bleu_score) end |