rapidsai / cuml

cuML - RAPIDS Machine Learning Library
https://docs.rapids.ai/api/cuml/stable/
Apache License 2.0
4.17k stars 527 forks source link

I have found that the library freezes when the entire martix has 0s and has a size more than 4*4. #5479

Open Shraban123 opened 1 year ago

Shraban123 commented 1 year ago

Describe the bug I have found that the library freezes when the entire martix has 0s and has a size more than 4*4.

Steps/Code to reproduce bug

  1. Take any matrix of size 10*10 containing all zeros
  2. Just run TSNE on that

Expected behavior There will an error warning as such: [W] # of Nearest Neighbors should be at least 3 * perplexity. [W] [20:04:31.883513] Perplexity should be within ranges (5, 50). Your results might be a bit strange...

Environment details (please complete the following information):

Additional context Add any other context about the problem here.

dantegd commented 1 year ago

Thanks for the issue report @Shraban123, we'll try to reproduce and debug and will report back status of things, any additional information could be helpful though. In particular, what type of object contained the matrix? Was it a cupy or numpy or cudf or pandas object?