Class: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceRaiSignal
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceRaiSignal
- 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
An RAI signal for a single category.
Instance Attribute Summary collapse
-
#confidence ⇒ String
The confidence level for the RAI category.
-
#flagged ⇒ Boolean
(also: #flagged?)
Whether the category is flagged as being present.
-
#rai_category ⇒ String
The RAI category.
-
#score ⇒ Float
The score for the category, in the range [0.0, 1.0].
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudAiNlLlmProtoServiceRaiSignal
constructor
A new instance of CloudAiNlLlmProtoServiceRaiSignal.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudAiNlLlmProtoServiceRaiSignal
Returns a new instance of CloudAiNlLlmProtoServiceRaiSignal.
983 984 985 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 983 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ String
The confidence level for the RAI category.
Corresponds to the JSON property confidence
964 965 966 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 964 def confidence @confidence end |
#flagged ⇒ Boolean Also known as: flagged?
Whether the category is flagged as being present. Currently, this is set to
true if score >= 0.5.
Corresponds to the JSON property flagged
970 971 972 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 970 def flagged @flagged end |
#rai_category ⇒ String
The RAI category.
Corresponds to the JSON property raiCategory
976 977 978 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 976 def rai_category @rai_category end |
#score ⇒ Float
The score for the category, in the range [0.0, 1.0].
Corresponds to the JSON property score
981 982 983 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 981 def score @score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
988 989 990 991 992 993 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 988 def update!(**args) @confidence = args[:confidence] if args.key?(:confidence) @flagged = args[:flagged] if args.key?(:flagged) @rai_category = args[:rai_category] if args.key?(:rai_category) @score = args[:score] if args.key?(:score) end |