Class: Google::Apis::AiplatformV1::LearningGenaiRootToxicitySignal

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

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.



30240
30241
30242
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30240

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

Instance Attribute Details

#allowedBoolean Also known as: allowed?

Corresponds to the JSON property allowed

Returns:

  • (Boolean)


30227
30228
30229
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30227

def allowed
  @allowed
end

#labelString

Corresponds to the JSON property label

Returns:

  • (String)


30233
30234
30235
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30233

def label
  @label
end

#scoreFloat

Corresponds to the JSON property score

Returns:

  • (Float)


30238
30239
30240
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30238

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



30245
30246
30247
30248
30249
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30245

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