Skip to content

Latest commit

 

History

History
120 lines (89 loc) · 1.64 KB

Lookup.md

File metadata and controls

120 lines (89 loc) · 1.64 KB

TFSimilarity.indexer.Lookup

Metadata associated with a query match.

TFSimilarity.indexer.Lookup(
    rank: int,
    distance: float,
    label: Optional[int] = dataclasses.field(default=None),
    embedding: Optional[np.ndarray] = dataclasses.field(default=None),
)

Attributes

rank Rank of the match with respect to the query distance.
distance The distance from the match to the query.
label The label associated with the match. Default None.
embedding The embedded match vector. Default None.
data The original Tensor representation of the match result. Default None.

Methods

__eq__

View source

__eq__(
    other
) -> bool

Return self==value.

Class Variables

data None
embedding None
label None