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

Error message: invalid value encountered in multiply #72

Closed ivan-marroquin closed 3 years ago

ivan-marroquin commented 3 years ago

Hi,

I would like to report the following error message:

Warning (from warnings module): File "C:\Temp\Python\Python3.6.5\lib\site-packages\scikit_hubness-0.21.3-py3.6.egg\skhubness\neighbors\hnsw.py", line 154 dtype=X.dtype) * np.nan RuntimeWarning: invalid value encountered in multiply

I am still able to get some scores, would this error message influence the quality of the outputs?

To duplicate the issue, please refer to attached zip file.

Ivan

issue_hubness_assessment.zip

VarIr commented 3 years ago

This is most likely no problem. These lines simply create arrays with dummy values that are later on overwritten.

ivan-marroquin commented 3 years ago

Thanks for the clarification