Class: Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfo
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfo
- 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
Instance Attribute Summary collapse
-
#detected_labels ⇒ Array<Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfoDetectedLabels>
The list of detected labels for different rai categories.
-
#rai_categories ⇒ Array<String>
List of rai categories' information to return Corresponds to the JSON property
raiCategories
. -
#scores ⇒ Array<Float>
List of rai scores mapping to the rai categories.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudAiLargeModelsVisionRaiInfo
constructor
A new instance of CloudAiLargeModelsVisionRaiInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudAiLargeModelsVisionRaiInfo
Returns a new instance of CloudAiLargeModelsVisionRaiInfo.
230 231 232 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 230 def initialize(**args) update!(**args) end |
Instance Attribute Details
#detected_labels ⇒ Array<Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfoDetectedLabels>
The list of detected labels for different rai categories.
Corresponds to the JSON property detectedLabels
218 219 220 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 218 def detected_labels @detected_labels end |
#rai_categories ⇒ Array<String>
List of rai categories' information to return
Corresponds to the JSON property raiCategories
223 224 225 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 223 def rai_categories @rai_categories end |
#scores ⇒ Array<Float>
List of rai scores mapping to the rai categories. Rounded to 1 decimal place.
Corresponds to the JSON property scores
228 229 230 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 228 def scores @scores end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
235 236 237 238 239 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 235 def update!(**args) @detected_labels = args[:detected_labels] if args.key?(:detected_labels) @rai_categories = args[:rai_categories] if args.key?(:rai_categories) @scores = args[:scores] if args.key?(:scores) end |