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.



31529
31530
31531
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31529

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

Instance Attribute Details

#policyString

Corresponds to the JSON property policy

Returns:

  • (String)


31522
31523
31524
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31522

def policy
  @policy
end

#score_maxFloat

Corresponds to the JSON property scoreMax

Returns:

  • (Float)


31527
31528
31529
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31527

def score_max
  @score_max
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31534
31535
31536
31537
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31534

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