Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FindNeighborsResponse

Inherits:
Object
  • Object
show all
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

The response message for MatchService.FindNeighbors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1FindNeighborsResponse

Returns a new instance of GoogleCloudAiplatformV1FindNeighborsResponse.



6766
6767
6768
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6766

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

Instance Attribute Details

#nearest_neighborsArray<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FindNeighborsResponseNearestNeighbors>

The nearest neighbors of the query datapoints. Corresponds to the JSON property nearestNeighbors



6764
6765
6766
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6764

def nearest_neighbors
  @nearest_neighbors
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6771
6772
6773
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6771

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