TutteInstitute / datamapplot

Creating beautiful plots of data maps
MIT License
489 stars 34 forks source link

fully labeled input causes exception #11

Open changhiskhan opened 7 months ago

changhiskhan commented 7 months ago

I'm trying to plot embeddings generated from the images of the oxford pets dataset, reduced using UMAP. When I try to create a plot, I get the error shown below. It seems to require that I have "Unlabelled" data. If i manually set one of the labels to "Unlabelled" (the default noise label), then the plot is generated as expected

image
changhiskhan commented 7 months ago

here's the successful example:

image
lmcinnes commented 7 months ago

It should be solved now in the main branch. I may wait a little while to roll up any other fixes come up in the next week before making a patch release.

dhruv-anand-aintech commented 6 months ago

I think the fix has not made it to a pypi package yet (tried 0.2.2). Can one be made?

lmcinnes commented 6 months ago

It should be in there, so possibly something has gone astray. I am travelling at the moment, but let me try to look into it when I get some time.