VarIr / scikit-hubness

A Python package for hubness analysis and high-dimensional data mining
BSD 3-Clause "New" or "Revised" License
44 stars 9 forks source link

'NearestNeighbors' is not defined #65

Closed eduamf closed 4 years ago

eduamf commented 4 years ago

Running ...

# assess the actual degree of hubness in dexter
from skhubness import Hubness
hub = Hubness(k=10, metric='cosine')
hub.fit(X)

X.shape = (300, 20000), y.shape=(300,) NameError: name 'NearestNeighbors' is not defined

eduamf commented 4 years ago

The previous error was about the scikit-learn versions bigger than 0.22.

After fix the scikit-learn version to 0.21.3, I closed Spyder and had to rebuild from source.