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.



31095
31096
31097
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31095

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

Instance Attribute Details

#allowedBoolean Also known as: allowed?

Corresponds to the JSON property allowed

Returns:

  • (Boolean)


31082
31083
31084
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31082

def allowed
  @allowed
end

#labelString

Corresponds to the JSON property label

Returns:

  • (String)


31088
31089
31090
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31088

def label
  @label
end

#scoreFloat

Corresponds to the JSON property score

Returns:

  • (Float)


31093
31094
31095
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31093

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31100
31101
31102
31103
31104
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31100

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