Cloud AI Platform v1 API - Class NearestNeighbors.Types.Neighbor (2.27.0)

public sealed class NearestNeighbors.Types.Neighbor : IMessage<NearestNeighbors.Types.Neighbor>, IEquatable<NearestNeighbors.Types.Neighbor>, IDeepCloneable<NearestNeighbors.Types.Neighbor>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud AI Platform v1 API class NearestNeighbors.Types.Neighbor.

A neighbor of the query vector.

Inheritance

object > NearestNeighbors.Types.Neighbor

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

Neighbor()

public Neighbor()

Neighbor(Neighbor)

public Neighbor(NearestNeighbors.Types.Neighbor other)
Parameter
NameDescription
otherNearestNeighborsTypesNeighbor

Properties

Distance

public double Distance { get; set; }

The distance between the neighbor and the query vector.

Property Value
TypeDescription
double

EntityId

public string EntityId { get; set; }

The id of the similar entity.

Property Value
TypeDescription
string

EntityKeyValues

public FetchFeatureValuesResponse EntityKeyValues { get; set; }

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.

Property Value
TypeDescription
FetchFeatureValuesResponse