Back to Tensorflow

NearestNeighbor

tensorflow/lite/g3doc/api_docs/java/org/tensorflow/lite/task/processor/NearestNeighbor.html

2.21.01.7 KB
Original Source

public abstract class NearestNeighbor

Represents the search result of a Searcher model.

Public Constructors

| | NearestNeighbor() |

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

From class java.lang.Object

| boolean | equals(Object arg0) | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

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.