Using this package does bad things to my NumPy
Hoeze opened this issue · 0 comments
Hoeze commented
import numpy as np
print(np.log(np.nextafter(0, np.inf, dtype=np.float64)))
from MulticoreTSNE import MulticoreTSNE as TSNE
tsne = TSNE(n_jobs=6)
print(np.log(np.nextafter(0, np.inf, dtype=np.float64)))
Result:
# print(np.log(np.nextafter(0, np.inf, dtype=np.float64)))
-744.4400719213812
# from MulticoreTSNE import MulticoreTSNE as TSNE
# tsne = TSNE(n_jobs=6)
# print(np.log(np.nextafter(0, np.inf, dtype=np.float64)))
__main__:1: RuntimeWarning: divide by zero encountered in log
-inf
After calling tsne = TSNE(n_jobs=6)
my numpy is not working any more as intended.
How can I fix this?