Class: Google::Apis::AiplatformV1::LearningGenaiRootControlDecodingConfigThreshold

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

Score threshold for a category.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootControlDecodingConfigThreshold

Returns a new instance of LearningGenaiRootControlDecodingConfigThreshold.



31460
31461
31462
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31460

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

Instance Attribute Details

#policyString

Corresponds to the JSON property policy

Returns:

  • (String)


31453
31454
31455
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31453

def policy
  @policy
end

#score_maxFloat

Corresponds to the JSON property scoreMax

Returns:

  • (Float)


31458
31459
31460
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31458

def score_max
  @score_max
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31465
31466
31467
31468
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31465

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