Class: Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAiLargeModelsVisionRaiInfo

Returns a new instance of CloudAiLargeModelsVisionRaiInfo.



274
275
276
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 274

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

Instance Attribute Details

#rai_categoriesArray<String>

List of rai categories' information to return Corresponds to the JSON property raiCategories

Returns:

  • (Array<String>)


267
268
269
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 267

def rai_categories
  @rai_categories
end

#scoresArray<Float>

List of rai scores mapping to the rai categories. Rounded to 1 decimal place. Corresponds to the JSON property scores

Returns:

  • (Array<Float>)


272
273
274
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 272

def scores
  @scores
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



279
280
281
282
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 279

def update!(**args)
  @rai_categories = args[:rai_categories] if args.key?(:rai_categories)
  @scores = args[:scores] if args.key?(:scores)
end