Class: Google::Apis::AiplatformV1beta1::LearningGenaiRootToxicitySignal

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

Proto to capture a signal generated by the toxicity model.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootToxicitySignal

Returns a new instance of LearningGenaiRootToxicitySignal.



37147
37148
37149
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37147

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

Instance Attribute Details

#allowedBoolean Also known as: allowed?

Corresponds to the JSON property allowed

Returns:

  • (Boolean)


37134
37135
37136
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37134

def allowed
  @allowed
end

#labelString

Corresponds to the JSON property label

Returns:

  • (String)


37140
37141
37142
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37140

def label
  @label
end

#scoreFloat

Corresponds to the JSON property score

Returns:

  • (Float)


37145
37146
37147
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37145

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37152
37153
37154
37155
37156
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37152

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