-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Hi,
From issue , I learned that the package should be able to conduct hubness analysis with several metrics (including fractional norms).
So, I tried to use a fractional norm with the following code:
from skhubness.data import load_dexter
from skhubness import Hubness
hub= Hubness(k= 10, return_value= 'all', metric= 'minkowski', algorithm= 'hnsw', algorithm_params= {'p': 0.1}, hubness= 'local_scaling', random_state= 1969, n_jobs= -1)
hub.fit(X)
which gave the error below:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\IMarroquin\Downloads\Important_Python_Libraries_VisualBuildTools\scikit-hubness-master\skhubness\analysis\estimation.py", line 283, in fit
raise ValueError(f"Unknown metric '{metric}'. "
ValueError: Unknown metric 'minkowski'. Must be one of ['euclidean', 'cosine', 'precomputed'].
According to documentation of nmslib, this package is able to support several metrics (including fractional norms).
I think it will be beneficial to run hubness analysis with the choice of metric.
Thanks,
Ivan