Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BleuSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BleuSpec
- 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
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) ⇒ GoogleCloudAiplatformV1BleuSpec
constructor
A new instance of GoogleCloudAiplatformV1BleuSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1BleuSpec
Returns a new instance of GoogleCloudAiplatformV1BleuSpec.
2310 2311 2312 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2310 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
2307 2308 2309 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2307 def use_effective_order @use_effective_order end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2315 2316 2317 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2315 def update!(**args) @use_effective_order = args[:use_effective_order] if args.key?(:use_effective_order) end |