Skip to content

plots: support multiple Y fields? [qa] #4255

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

Closed
jorgeorpinel opened this issue Jul 21, 2020 · 7 comments
Closed

plots: support multiple Y fields? [qa] #4255

jorgeorpinel opened this issue Jul 21, 2020 · 7 comments
Labels
awaiting response we are waiting for your reply, please respond! :) discussion requires active participation to reach a conclusion feature request Requesting a new feature p3-nice-to-have It should be done this or next sprint

Comments

@jorgeorpinel
Copy link
Contributor

Let's say I have a tabular plots file plot.csv:

h1,h2,h3
1,1,0
2,2,0
3,4,-1
4,8,7

and I want to overlay all 3 Hs in a single graph. I can't. I have to pick one at a time, e.g.:

$ dvc plots show -y h2 plot.csv

In fact even with plots diff there's no way to visualize these columns in a single graph (the file would have to be split into 3, each one versioned in a different commit). So what if -y simply accepted multiple field names (or plots diff accepted multiple-y flags)? E.g.:

$ dvc plots show -y h1,h2,h3 plot.csv
# or
$ dvc plots show -y h1 -y h2 -y h3 plot.csv

In fact this could also apply to -x. But it could only be done with one or the other, not both (to keep things relatively simple).

@jorgeorpinel jorgeorpinel added feature request Requesting a new feature discussion requires active participation to reach a conclusion labels Jul 21, 2020
@jorgeorpinel
Copy link
Contributor Author

Cc @dmpetrov

@jorgeorpinel
Copy link
Contributor Author

jorgeorpinel commented Jul 21, 2020

Motivation: deep learning or other scenarios where a single stage generates multiple results that need to be evaluated. The user would program the stage to output a single plots file with multiple columns in order to compare many variations. (This is a different option for experiments that doesn't need either run-cache nor multiple commits.)

Of course it won't be very helpful to plot more than 4 or 5 lines in our little Vega graphs, so not 100% sure this has a real application. I just think it's a kind of intuitive feature to add.

@efiop efiop added p3-nice-to-have It should be done this or next sprint awaiting response we are waiting for your reply, please respond! :) labels Jul 21, 2020
@efiop
Copy link
Contributor

efiop commented Oct 14, 2020

Closing for now as stale

@efiop efiop closed this as completed Oct 14, 2020
@jwgwalton
Copy link

+1 on this, i would like to show plots of precision and recall for different population segments and want to have them on the same graph.

@daavoo
Copy link
Contributor

daavoo commented Oct 29, 2021

For reference, there is an open discussion #5980 and current WIP on the subject

@daavoo
Copy link
Contributor

daavoo commented Oct 29, 2021

+1 on this, i would like to show plots of precision and recall for different population segments and want to have them on the same graph.

Depending on how your plot data is stored, you could use a custom template for that. See iterative/studio-support#23 (comment)

@jwgwalton
Copy link

Thanks @daavoo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response we are waiting for your reply, please respond! :) discussion requires active participation to reach a conclusion feature request Requesting a new feature p3-nice-to-have It should be done this or next sprint
Projects
None yet
Development

No branches or pull requests

4 participants