Class: Google::Cloud::AIPlatform::V1::NearestNeighbors

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb

Overview

Nearest neighbors for one query.

Defined Under Namespace

Classes: Neighbor

Instance Attribute Summary collapse

Instance Attribute Details

#neighbors::Array<::Google::Cloud::AIPlatform::V1::NearestNeighbors::Neighbor>

Returns All its neighbors.

Returns:



267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
# File 'proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb', line 267

class NearestNeighbors
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A neighbor of the query vector.
  # @!attribute [rw] entity_id
  #   @return [::String]
  #     The id of the similar entity.
  # @!attribute [rw] distance
  #   @return [::Float]
  #     The distance between the neighbor and the query vector.
  # @!attribute [rw] entity_key_values
  #   @return [::Google::Cloud::AIPlatform::V1::FetchFeatureValuesResponse]
  #     The attributes of the neighbor, e.g. filters, crowding and metadata
  #     Note that full entities are returned only when "return_full_entity"
  #     is set to true. Otherwise, only the "entity_id" and "distance" fields
  #     are populated.
  class Neighbor
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end