Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::FindNeighborsResponse::NearestNeighbors.
Nearest neighbors for one query.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#id
def id() -> ::String
Returns
- (::String) — The ID of the query datapoint.
#id=
def id=(value) -> ::String
Parameter
- value (::String) — The ID of the query datapoint.
Returns
- (::String) — The ID of the query datapoint.
#neighbors
def neighbors() -> ::Array<::Google::Cloud::AIPlatform::V1::FindNeighborsResponse::Neighbor>
Returns
- (::Array<::Google::Cloud::AIPlatform::V1::FindNeighborsResponse::Neighbor>) — All its neighbors.
#neighbors=
def neighbors=(value) -> ::Array<::Google::Cloud::AIPlatform::V1::FindNeighborsResponse::Neighbor>
Parameter
- value (::Array<::Google::Cloud::AIPlatform::V1::FindNeighborsResponse::Neighbor>) — All its neighbors.
Returns
- (::Array<::Google::Cloud::AIPlatform::V1::FindNeighborsResponse::Neighbor>) — All its neighbors.