Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyResult

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

Spec for safety result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SafetyResult

Returns a new instance of GoogleCloudAiplatformV1beta1SafetyResult.



24373
24374
24375
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 24373

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

Instance Attribute Details

#confidenceFloat

Output only. Confidence for safety score. Corresponds to the JSON property confidence

Returns:

  • (Float)


24361
24362
24363
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 24361

def confidence
  @confidence
end

#explanationString

Output only. Explanation for safety score. Corresponds to the JSON property explanation

Returns:

  • (String)


24366
24367
24368
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 24366

def explanation
  @explanation
end

#scoreFloat

Output only. Safety score. Corresponds to the JSON property score

Returns:

  • (Float)


24371
24372
24373
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 24371

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



24378
24379
24380
24381
24382
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 24378

def update!(**args)
  @confidence = args[:confidence] if args.key?(:confidence)
  @explanation = args[:explanation] if args.key?(:explanation)
  @score = args[:score] if args.key?(:score)
end