You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means that, for example, internally PyNNDescent uses the negative log of the cosine similarity instead of cosine distance (and converts the distance values when done).
However, those distances are probably not converted when using PyNNDescentTransformer, hence the error.
The text was updated successfully, but these errors were encountered:
The dataset used was Codon Usage. Interestingly enough, it has only nonnegative values (codon percentages), so regular cosine is always nonnegative as well. Exact code:
When PyNNDescentTransformer is used with KNeighborsClassifier with cosine metric, it raises an error:
Error:
This makes sense, since according to the docs (https://pynndescent.readthedocs.io/en/latest/pynndescent_metrics.html#Beware-of-bounded-distances):
However, those distances are probably not converted when using PyNNDescentTransformer, hence the error.
The text was updated successfully, but these errors were encountered: