Closed ivan-marroquin closed 3 years ago
It seems the error messages are sometimes misleading. In any case, metric="precomputed"
should be combined with algorithm="brute"
.
Unfortunately, the help documentation does not mention that 'precomputed' should be used with algorithm set to 'brute' (https://scikit-hubness.readthedocs.io/en/latest/documentation/_autosummary/skhubness.analysis.Hubness.html)
Starting from v0.30, Hubness
will by default expect KNeighborsTransformer
-compatible input, that is, a sparse k-neighbors graph as produced by recent versions of sklearn or the new wrappers in skhubness (e.g. the NMSlibTransformer
).
This should effectively solve this issue.
Hi,
I would like to report the following issue with precomputed option when using hnsw algorithm.
First run:
Second run:
Third run:
Thanks for your help,
Ivan