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

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

A neighbor of the query vector.

Instance Attribute Summary collapse

Instance Attribute Details

#distance::Float

Returns The distance between the neighbor and the query vector.

Returns:

  • (::Float)

    The distance between the neighbor and the query vector.



284
285
286
287
# File 'proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb', line 284

class Neighbor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#entity_id::String

Returns The id of the similar entity.

Returns:

  • (::String)

    The id of the similar entity.



284
285
286
287
# File 'proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb', line 284

class Neighbor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#entity_key_values::Google::Cloud::AIPlatform::V1::FetchFeatureValuesResponse

Returns 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.

Returns:



284
285
286
287
# File 'proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb', line 284

class Neighbor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end