Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::NearestNeighbors::Neighbor.
A neighbor of the query vector.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#distance
def distance() -> ::Float
Returns
- (::Float) — The distance between the neighbor and the query vector.
#distance=
def distance=(value) -> ::Float
Parameter
- value (::Float) — The distance between the neighbor and the query vector.
Returns
- (::Float) — The distance between the neighbor and the query vector.
#entity_id
def entity_id() -> ::String
Returns
- (::String) — The id of the similar entity.
#entity_id=
def entity_id=(value) -> ::String
Parameter
- value (::String) — The id of the similar entity.
Returns
- (::String) — The id of the similar entity.
#entity_key_values
def entity_key_values() -> ::Google::Cloud::AIPlatform::V1::FetchFeatureValuesResponse
Returns
- (::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.
#entity_key_values=
def entity_key_values=(value) -> ::Google::Cloud::AIPlatform::V1::FetchFeatureValuesResponse
Parameter
- value (::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.
Returns
- (::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.