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

Feature request: Export label informatin of selected points in a projection #820

Closed
benjaminengel opened this issue Dec 15, 2017 · 5 comments

Comments

@benjaminengel
Copy link

Hi there,
I would like to export the labels of my selected points in a projection, in order to import them and retrain my model on these points.

One way could be to append the information on a bookmark. But I'm not where the label information are held, it would be great if you could give me some hints.

Regards

@jart
Copy link
Contributor

jart commented Dec 16, 2017

I invite @nsthorat @francoisluus to comment on this feature request.

@francoisluus
Copy link
Contributor

To immediately accomplish this make the selection, 'Edit by' with an identifiable label, and download the metadata that you then simply filter on when loading into your training dataset. You may need to add an extra metadata column beforehand which can contain your new labels that essentially say "use" or "don't use", where you filter out the "don't use" when creating your training array. I hope I am understanding your query correctly.

@benjaminengel
Copy link
Author

Hi @francoisluus, thanks for the reply!

Yes this was exactly what I ment.

I've found the 'Edit by' (in version 0.4.0rc3 called 'Label by') and was hoping to see the label in a bookmark file after selecting them. But they don't show up.

What I noticed in the meanwhile is that the bookmark contains a "selectedPoints" section which preserves the order of the input, that allowed me to reselect the points for model selection.

Wouldn't it be a better option to just put the selected labels there as well? And if so, where could I start tinkering?

@jart
Copy link
Contributor

jart commented Dec 18, 2017

I'm going to go ahead and close this one out. Thank you for helping our friend @francoisluus. I'll also note that StackOverflow #tensorboard has the most active community of folks answering questions.

@jart jart closed this as completed Dec 18, 2017
@francoisluus
Copy link
Contributor

francoisluus commented Dec 21, 2017

@benjaminengel So a lot of the bookmarking magic happens in tensorboard/plugins/projector/vz_projector/vz-projector.ts, where you can look at getCurrentState() and loadState(). The labels are contained in dataSet.spriteAndMetadataInfo.

I am not sure if embedding metadata into the bookmark/state will be supported, unless the size and scope can be logically constrained. The current idea is just to download the changed metadata and to reload it, and also to load the bookmark. Another approach is to automatically include a 'selected' column in the downloaded/updated metadata file, a preference which the user can pre-specify with a tick box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants