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.



32777
32778
32779
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32777

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

Instance Attribute Details

#allowedBoolean Also known as: allowed?

Corresponds to the JSON property allowed

Returns:

  • (Boolean)


32764
32765
32766
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32764

def allowed
  @allowed
end

#labelString

Corresponds to the JSON property label

Returns:

  • (String)


32770
32771
32772
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32770

def label
  @label
end

#scoreFloat

Corresponds to the JSON property score

Returns:

  • (Float)


32775
32776
32777
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32775

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



32782
32783
32784
32785
32786
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32782

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