Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BleuSpec

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1BleuSpec

Returns a new instance of GoogleCloudAiplatformV1BleuSpec.



2252
2253
2254
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2252

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

Instance Attribute Details

#use_effective_orderBoolean Also known as: use_effective_order?

Optional. Whether to use_effective_order to compute bleu score. Corresponds to the JSON property useEffectiveOrder

Returns:

  • (Boolean)


2249
2250
2251
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2249

def use_effective_order
  @use_effective_order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2257
2258
2259
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 2257

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