Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BleuSpec

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1BleuSpec

Returns a new instance of GoogleCloudAiplatformV1beta1BleuSpec.



11092
11093
11094
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11092

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)


11089
11090
11091
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11089

def use_effective_order
  @use_effective_order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11097
11098
11099
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11097

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