-
Notifications
You must be signed in to change notification settings - Fork 771
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
ValueError: negative column index found #11
Comments
Hi, thanks for trying our the software. I had thought I had caught most instances when this could occur, but apparently not. What has happened, I believe, is that the algorithm has failed to find 15 nearest for at least one point; this breaks a lot of things. This may be data related, or possibly parameters related. I'll grab the data and see if I can see what is going wrong in this case. Thanks for the detailed report and the reproducer data -- it will make this process go much faster. |
Thanks for the response. If I try to increase number of nearest points: embedding = umap.UMAP(n_neighbors=25, min_dist=0.1,
metric='correlation').fit_transform(df.values) I'm getting a new error:
|
I believe that is likely the same underlying error presenting in a different way when it arrives further downstream in the code. I'll have to look at the data and see what I've missed (as well as hopefully adding a few checks to provide more meaningful error statements when things like this do go wrong). |
It looks like the RP tree initialisation for NN-descent is carving off some outliers as singletons; this, in turn, makes NN-descent not work as well as it should. The end result is ... less than ideal. I should be able to fix this by randomly initialising any bad points. Hopefully I can get that done later today. |
This fixed the issue on your data or me locally. If you could rebuild and re-install from master and let me know if it resolves the issue for you as well that would be greatly appreciated. |
Thanks a lot! Let me test it ;) |
It seems the problem is solved! Thanks a lot for quick response and the fix! And of course, thanks for this amazing software. |
error.zip
A strange issue happen if you try to compute these simple 500 rows (file is attached).
The code:
In result we're getting this error:
Any help is appreciated.
The text was updated successfully, but these errors were encountered: