Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::FindNeighborsResponse::Neighbor (v0.39.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::FindNeighborsResponse::Neighbor.

A neighbor of the query vector.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#datapoint

def datapoint() -> ::Google::Cloud::AIPlatform::V1::IndexDatapoint
Returns
  • (::Google::Cloud::AIPlatform::V1::IndexDatapoint) — The datapoint of the neighbor. Note that full datapoints are returned only when "return_full_datapoint" is set to true. Otherwise, only the "datapoint_id" and "crowding_tag" fields are populated.

#datapoint=

def datapoint=(value) -> ::Google::Cloud::AIPlatform::V1::IndexDatapoint
Parameter
  • value (::Google::Cloud::AIPlatform::V1::IndexDatapoint) — The datapoint of the neighbor. Note that full datapoints are returned only when "return_full_datapoint" is set to true. Otherwise, only the "datapoint_id" and "crowding_tag" fields are populated.
Returns
  • (::Google::Cloud::AIPlatform::V1::IndexDatapoint) — The datapoint of the neighbor. Note that full datapoints are returned only when "return_full_datapoint" is set to true. Otherwise, only the "datapoint_id" and "crowding_tag" fields are populated.

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