Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class Neighbor.
A neighbor of the query vector.
Generated from protobuf message google.cloud.aiplatform.v1.NearestNeighbors.Neighbor
Namespace
Google \ Cloud \ AIPlatform \ V1 \ NearestNeighborsMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ entity_id
string
The id of the similar entity.
↳ distance
float
The distance between the neighbor and the query vector.
↳ entity_key_values
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.
getEntityId
The id of the similar entity.
string
setEntityId
The id of the similar entity.
var
string
$this
getDistance
The distance between the neighbor and the query vector.
float
setDistance
The distance between the neighbor and the query vector.
var
float
$this
getEntityKeyValues
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.
hasEntityKeyValues
clearEntityKeyValues
setEntityKeyValues
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.
$this

