Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using this package does bad things to my NumPy #58

Open
Hoeze opened this issue Nov 12, 2018 · 0 comments
Open

Using this package does bad things to my NumPy #58

Hoeze opened this issue Nov 12, 2018 · 0 comments

Comments

@Hoeze
Copy link

Hoeze commented Nov 12, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant