Class: Google::Apis::AiplatformV1beta1::LearningGenaiRootToxicitySignal
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::LearningGenaiRootToxicitySignal
- 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
Proto to capture a signal generated by the toxicity model.
Instance Attribute Summary collapse
-
#allowed ⇒ Boolean
(also: #allowed?)
Corresponds to the JSON property
allowed. -
#label ⇒ String
Corresponds to the JSON property
label. -
#score ⇒ Float
Corresponds to the JSON property
score.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LearningGenaiRootToxicitySignal
constructor
A new instance of LearningGenaiRootToxicitySignal.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LearningGenaiRootToxicitySignal
Returns a new instance of LearningGenaiRootToxicitySignal.
32168 32169 32170 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32168 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed ⇒ Boolean Also known as: allowed?
Corresponds to the JSON property allowed
32155 32156 32157 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32155 def allowed @allowed end |
#label ⇒ String
Corresponds to the JSON property label
32161 32162 32163 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32161 def label @label end |
#score ⇒ Float
Corresponds to the JSON property score
32166 32167 32168 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32166 def score @score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
32173 32174 32175 32176 32177 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32173 def update!(**args) @allowed = args[:allowed] if args.key?(:allowed) @label = args[:label] if args.key?(:label) @score = args[:score] if args.key?(:score) end |