Google I/O is a wrap! Catch up on TensorFlow sessions View sessions

NearestNeighbor

public abstract class NearestNeighbor

Represents the search result of a Searcher model.

Public Constructors

Public Methods

abstract float
getDistance()
Gets the distance score indicating how confident the result is.
abstract ByteBuffer
getMetadata()
Gets the user-defined metadata about the result.

Inherited Methods

Public Constructors

public NearestNeighbor ()

Public Methods

public abstract float getDistance ()

Gets the distance score indicating how confident the result is. Lower is better.

public abstract ByteBuffer getMetadata ()

Gets the user-defined metadata about the result. This could be a label, a unique ID, a serialized proto of some sort, etc.

Do not mutate the returned metadata.