Skip to content

Plots#1186

Merged
dmpetrov merged 9 commits into
masterfrom
plots
May 7, 2020
Merged

Plots#1186
dmpetrov merged 9 commits into
masterfrom
plots

Conversation

@dmpetrov
Copy link
Copy Markdown
Contributor

Plot metrics.

Related to treeverse/dvc#3409

@shcheklein shcheklein temporarily deployed to dvc-landing-plots-wjaustbsuxuv April 26, 2020 11:47 Inactive
@shcheklein shcheklein temporarily deployed to dvc-landing-plots-wjaustbsuxuv April 26, 2020 15:50 Inactive
@dmpetrov
Copy link
Copy Markdown
Contributor Author

@jorgeorpinel and @shcheklein for some reason I don't see dvc plot & dvc plot show\diff in the menu. It looks like I missed something.
Could you please help me?

@shcheklein
Copy link
Copy Markdown
Contributor

@dmpetrov yep, update sidebar.json - that should do the trick.

@shcheklein shcheklein temporarily deployed to dvc-landing-plots-wjaustbsuxuv April 26, 2020 16:20 Inactive
@dmpetrov
Copy link
Copy Markdown
Contributor Author

sidebar

Thank you @shcheklein ! Forgot about this :)

Copy link
Copy Markdown
Contributor

@jorgeorpinel jorgeorpinel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small preemptive review of the dvc plot intro.

Please let us know when this is ready for full review.

Comment thread content/docs/command-reference/plot/index.md Outdated
Comment thread content/docs/command-reference/plot/index.md Outdated
Comment thread content/docs/command-reference/plot/index.md Outdated
Comment thread content/docs/command-reference/plot/index.md Outdated
Comment thread content/docs/command-reference/plot/index.md
@dmpetrov
Copy link
Copy Markdown
Contributor Author

Please let us know when this is ready for full review.

@jorgeorpinel thank you for the small changes.

I'm waiting for a bugfix while I can add one more part about the plot templates. It would be great to make review now. I'll incorporate the template later right here or as a separate PR.

@dmpetrov dmpetrov changed the title [WIP] Plots Plots Apr 27, 2020
Copy link
Copy Markdown
Contributor

@pared pared left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left few comments

Comment thread content/docs/command-reference/plot/diff.md Outdated
Comment thread content/docs/command-reference/plot/diff.md
Comment thread content/docs/command-reference/plot/diff.md
Comment thread content/docs/command-reference/plot/diff.md Outdated
Comment thread content/docs/command-reference/plot/index.md Outdated
Comment thread content/docs/command-reference/plot/index.md Outdated
Comment thread content/docs/command-reference/plot/show.md Outdated
@shcheklein shcheklein temporarily deployed to dvc-landing-plots-wjaustbsuxuv April 28, 2020 01:44 Inactive
@dmpetrov
Copy link
Copy Markdown
Contributor Author

@jorgeorpinel and @pared pushed all the changes. Please take a look.

Copy link
Copy Markdown
Contributor

@jorgeorpinel jorgeorpinel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, another round of review on the basics of each document.

I didn't go into some details like Options and Examples but I can if you want.

We can also take this over when needed. Please lmk

Comment thread content/docs/command-reference/plot/index.md Outdated
Comment thread content/docs/command-reference/plot/index.md Outdated
Comment on lines +20 to +24
## Description

DVC provides a set of commands to visualize continuous metrics of machine
learning experiments in. Usual examples of plots are AUC curves, loss functions,
and confusion matrices.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should just jump into explaining what continuous metrics are right here on the top of the description, and remove the Continuous metrics H3 header. Start with the

In contrast to [scalar metrics](/doc/command-reference/metrics), continous metrics represents a plot and ...

paragraph that's much further down rn. Idk if we need to explain scalar metrics here, probably not?

And just link to /doc/command-reference/plot directly from places where [continuous metrics] are mentioned.

This comment was marked as resolved.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All points are great! I rearranged this part. Please take a look.

It is still important to keep the scalars vs continuous difference somewhere. I keep it as a next section but rearranged from the plot point of view.

Copy link
Copy Markdown
Contributor

@jorgeorpinel jorgeorpinel Apr 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is still important to keep the scalars vs continuous difference somewhere

I agree! But I think the scalar metrics should be explained in the description of dvc metrics cmd ref index, and just mention the word here with a link to there, without explaining. But OK I guess that can be a separate issue (to match dvc metrics with this ref)

Copy link
Copy Markdown
Contributor

@jorgeorpinel jorgeorpinel Apr 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • p.s. unresolving for myself to remember about "that can be a separate issue (to match dvc metrics with this ref)"

Comment thread content/docs/command-reference/plot/index.md Outdated
Comment thread content/docs/command-reference/plot/index.md Outdated
Comment thread content/docs/command-reference/plot/show.md Outdated
Comment thread content/docs/command-reference/plot/show.md Outdated
Comment thread content/docs/command-reference/plot/diff.md Outdated
Comment thread content/docs/command-reference/plot/show.md Outdated
Comment thread content/docs/command-reference/plot/index.md Outdated
@jorgeorpinel jorgeorpinel temporarily deployed to dvc-landing-plots-wjaustbsuxuv April 28, 2020 05:01 Inactive
@shcheklein shcheklein temporarily deployed to dvc-landing-plots-wjaustbsuxuv April 29, 2020 09:33 Inactive
@dmpetrov
Copy link
Copy Markdown
Contributor Author

@jorgeorpinel thank you for the review. Please take a look at the changes.

Comment thread content/docs/command-reference/plot/index.md Outdated
@jorgeorpinel
Copy link
Copy Markdown
Contributor

thank you for the review. Please take a look at the changes

No problem. I resolved all the parts of the review that are now addressed or no longer relevant, and added one more comment. Still haven't reviewed everything in detail (options, examples) is it a good time to do so? And again, I can take this over at some point if needed, lmk guys cc @ivan

@shcheklein
Copy link
Copy Markdown
Contributor

@jorgeorpinel wrong @ ivan I think :)

what is the status of this?

@jorgeorpinel
Copy link
Copy Markdown
Contributor

jorgeorpinel commented May 5, 2020

wrong @ ivan

I keep doing that...

what is the status of this?

Some review items are still pending. Are we taking it over yet?

@shcheklein
Copy link
Copy Markdown
Contributor

@jorgeorpinel I trust you on making this call :) don't have enough context on this.

@dmpetrov
Copy link
Copy Markdown
Contributor Author

dmpetrov commented May 5, 2020

@shcheklein and @jorgeorpinel I just updated it:

  1. made all the asked changes
  2. added new plot options
  3. small API fixes (output file name)
  4. added custom plots section

Please take a look,

# plot diff

Show multiple versions of
[continuous metrics](/doc/command-reference/plot#continous-metrics) by plotting
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder whether we want to name them continuous. This word applies to functions. What about, for example, confusion matrix? Data for that type of plot is not continuous.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed with @pared . Probably even plain explicit "non-scalar metric" would be better?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah. it will be changed. all the terminology around continuous will be removed in the next iteration.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • So let's leave "continuous" in this PR so we have a plot cmd ref for now, and update it in a following PR.

Comment thread content/docs/command-reference/plot/index.md Outdated
Comment thread content/docs/command-reference/plot/show.md Outdated
Copy link
Copy Markdown
Contributor

@jorgeorpinel jorgeorpinel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some items pending but this whole doc needs another pass anyway so approving. Let's merge and address the stuff pending (below) along with the next PR?


@dmpetrov dmpetrov merged commit 492f002 into master May 7, 2020
@dmpetrov dmpetrov deleted the plots branch May 7, 2020 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants