Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Neighbor
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Neighbor
- 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
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) ⇒ GoogleCloudAiplatformV1beta1Neighbor
constructor
A new instance of GoogleCloudAiplatformV1beta1Neighbor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1Neighbor
Returns a new instance of GoogleCloudAiplatformV1beta1Neighbor.
18691 18692 18693 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18691 def initialize(**args) update!(**args) end |
Instance Attribute Details
#neighbor_distance ⇒ Float
Output only. The neighbor distance.
Corresponds to the JSON property neighborDistance
18684 18685 18686 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18684 def neighbor_distance @neighbor_distance end |
#neighbor_id ⇒ String
Output only. The neighbor id.
Corresponds to the JSON property neighborId
18689 18690 18691 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18689 def neighbor_id @neighbor_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18696 18697 18698 18699 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18696 def update!(**args) @neighbor_distance = args[:neighbor_distance] if args.key?(:neighbor_distance) @neighbor_id = args[:neighbor_id] if args.key?(:neighbor_id) end |