skhubness.neighbors.HNSW¶
-
class
skhubness.neighbors.HNSW(n_candidates: int = 5, metric: str = 'euclidean', method: str = 'hnsw', post_processing: int = 2, n_jobs: int = 1, verbose: int = 0)[source]¶ -
__init__(self, n_candidates: 'int' = 5, metric: 'str' = 'euclidean', method: 'str' = 'hnsw', post_processing: 'int' = 2, n_jobs: 'int' = 1, verbose: 'int' = 0)[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(self, n_candidates, metric, method, …)Initialize self.
fit(self, X[, y])Setup the HNSW index.
kneighbors(self, X, n_candidates, …)Attributes
valid_metrics-