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

Enabling verbose causes kernel crash (likely a divided by zero) #87

Open
LucaCappelletti94 opened this issue Oct 17, 2021 · 0 comments
Open

Comments

@LucaCappelletti94
Copy link

I have found the most peculiar bug: if verbose is enabled, with some inputs, the library causes a jupyter kernel crash.

I believe it to be caused by a divide by zero, as when I print the output of the dmesg command I get:

[ 8324.933431]  in libtsne_multicore.so[7fcdffd99000+26000]
[ 8324.933434] traps: ZMQbg/1[7595] trap divide error ip:7fcdffdac3bc sp:7fcdfeb699a0 error:0

You can reproduce the error by running:

import numpy as np
from MulticoreTSNE import MulticoreTSNE

a = np.array([
    [0, 1, 1, 1, 1],
    [1, 0, 1, 2, 1],
    [1, 1, 0, 1, 2],
    [1, 2, 1, 0, 1],
    [1, 1, 2, 1, 0]
])

MulticoreTSNE(
    verbose=True
).fit_transform(a)

You can immediately test it on COLAB here:

COLAB link: https://colab.research.google.com/drive/1uM0GFpLm1Ln_VJRsMLEjyuG0GsnQvZng?usp=sharing

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