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.



31200
31201
31202
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31200

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

Instance Attribute Details

#allowedBoolean Also known as: allowed?

Corresponds to the JSON property allowed

Returns:

  • (Boolean)


31187
31188
31189
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31187

def allowed
  @allowed
end

#labelString

Corresponds to the JSON property label

Returns:

  • (String)


31193
31194
31195
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31193

def label
  @label
end

#scoreFloat

Corresponds to the JSON property score

Returns:

  • (Float)


31198
31199
31200
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31198

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31205
31206
31207
31208
31209
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31205

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