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