Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Neighbor
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Neighbor
- 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
Neighbors for example-based explanations.
Instance Attribute Summary collapse
-
#neighbor_distance ⇒ Float
Output only.
-
#neighbor_id ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1Neighbor
constructor
A new instance of GoogleCloudAiplatformV1Neighbor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1Neighbor
Returns a new instance of GoogleCloudAiplatformV1Neighbor.
17262 17263 17264 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17262 def initialize(**args) update!(**args) end |
Instance Attribute Details
#neighbor_distance ⇒ Float
Output only. The neighbor distance.
Corresponds to the JSON property neighborDistance
17255 17256 17257 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17255 def neighbor_distance @neighbor_distance end |
#neighbor_id ⇒ String
Output only. The neighbor id.
Corresponds to the JSON property neighborId
17260 17261 17262 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17260 def neighbor_id @neighbor_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17267 17268 17269 17270 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 17267 def update!(**args) @neighbor_distance = args[:neighbor_distance] if args.key?(:neighbor_distance) @neighbor_id = args[:neighbor_id] if args.key?(:neighbor_id) end |