gnes.indexer.key_only module

class gnes.indexer.key_only.DictKeyIndexer(*args, **kwargs)[source]

Bases: gnes.indexer.base.BaseKeyIndexer

add(keys: List[Tuple[int, int]], weights: List[float], *args, **kwargs) → int[source]
query(keys: List[int], *args, **kwargs) → List[Tuple[int, int, float]][source]
size
train(*args, **kwargs)

Train the model, need to be overrided

class gnes.indexer.key_only.ListKeyIndexer(*args, **kwargs)[source]

Bases: gnes.indexer.base.BaseKeyIndexer

add(keys: List[Tuple[int, int]], weights: List[float], *args, **kwargs) → int[source]
query(keys: List[int], *args, **kwargs) → List[Tuple[int, int, float]][source]
size
train(*args, **kwargs)

Train the model, need to be overrided

class gnes.indexer.key_only.ListNumpyKeyIndexer(*args, **kwargs)[source]

Bases: gnes.indexer.key_only.ListKeyIndexer

add(*args, **kwargs) → int[source]
query(keys: List[int], *args, **kwargs) → List[Tuple[int, int, float]][source]
train(*args, **kwargs)

Train the model, need to be overrided

class gnes.indexer.key_only.NumpyKeyIndexer(buffer_size: int = 10000, col_size: int = 3, *args, **kwargs)[source]

Bases: gnes.indexer.base.BaseKeyIndexer

add(keys: List[Tuple[int, int]], weights: List[float], *args, **kwargs) → int[source]
capacity
query(keys: List[int], *args, **kwargs) → List[Tuple[int, int, float]][source]
size
train(*args, **kwargs)

Train the model, need to be overrided