Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::NearestNeighbors::Neighbor (v0.57.0)

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

#entity_key_values=

def entity_key_values=(value) -> ::Google::Cloud::AIPlatform::V1::FetchFeatureValuesResponse
Parameter
Returns