Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BleuSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BleuSpec
- 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
Overview
Spec for bleu score metric - calculates the precision of n-grams in the prediction as compared to reference - returns a score ranging between 0 to 1.
Instance Attribute Summary collapse
-
#use_effective_order ⇒ Boolean
(also: #use_effective_order?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1BleuSpec
constructor
A new instance of GoogleCloudAiplatformV1beta1BleuSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1BleuSpec
Returns a new instance of GoogleCloudAiplatformV1beta1BleuSpec.
2508 2509 2510 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2508 def initialize(**args) update!(**args) end |
Instance Attribute Details
#use_effective_order ⇒ Boolean Also known as: use_effective_order?
Optional. Whether to use_effective_order to compute bleu score.
Corresponds to the JSON property useEffectiveOrder
2505 2506 2507 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2505 def use_effective_order @use_effective_order end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2513 2514 2515 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2513 def update!(**args) @use_effective_order = args[:use_effective_order] if args.key?(:use_effective_order) end |