human-learn icon indicating copy to clipboard operation
human-learn copied to clipboard

Adding a tooltip would help make decision on where to draw the line when no labels are available

Open nbeuchat opened this issue 4 years ago • 6 comments

Hey there! Human learn has been super helpful so far. One thing I am a bit missing is the ability to see some of the underlying data about each data point. It would be very helpful to have a tooltip and having the option to pick a list of columns from the data frame to see in the tooltip.

Right now, I am using Plotly separately to do that which allows me to more easily explore clusters. Then I try to find this cluster and draw on it.

Screenshot 2021-01-14 19:22:32

What do you think? Cheers, Nicolas

nbeuchat avatar Jan 14 '21 18:01 nbeuchat

Looks like Bokeh has this option: https://github.com/bokeh/bokeh/blob/43ff5af6f666cbf4d1ed1c26c7a128e9b10cd86c/examples/app/movies/main.py#L54

Maybe one simple option would be to allow passing down kwargs to bokeh figure method?

nbeuchat avatar Jan 14 '21 18:01 nbeuchat

I'm happy to delete my comment if it cuts the discussion away.. but perhaps this can help?

The annotation interface of hover does almost exactly what you are looking for (identifying clusters with tooltips, especially without existing labels), except that instead of making a model like in hulearn you just apply a label of your choice.

What I suggest is that you can potentially use hulearn and hover side by side with the same set of xy-coordinates. Get labels on the fly with hover and then create models with hulearn -- how does that sound?

phurwicz avatar Jan 17 '21 07:01 phurwicz

@phurwicz Thank you very much for the link to hover, I didn't know this tool. It looks like a really good interface for bulk adding labels. I'll give it a shot now!

I still think having the tooltip in hulearn would be great so as to avoid having to add an extra step if it is not necessary.

nbeuchat avatar Jan 17 '21 15:01 nbeuchat

@phurwicz Thank you very much for the link to hover, I didn't know this tool. It looks like a really good interface for bulk adding labels. I'll give it a shot now!

I still think having the tooltip in hulearn would be great so as to avoid having to add an extra step if it is not necessary.

Agreed! Showing custom tooltips can be tricky but is definitely worth it.

Here's an my implementation if it helps bringing tooltips to hulearn.

phurwicz avatar Jan 17 '21 17:01 phurwicz

Apologies! For some reason, GitHub wasn't notifying me of these messages. I only just now realized this conversation was happening. Am reviewing a PR right now though to get this feature in.

koaning avatar Feb 06 '21 09:02 koaning

No worries at all! It's awesome that someone took the time to open a PR for it, looking forward to trying it once/if it's merged!

nbeuchat avatar Feb 06 '21 14:02 nbeuchat

Closing due to radio silence.

koaning avatar Sep 04 '22 07:09 koaning