-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Consistency of desc fields in dvc.yaml and .dvc files #5025
Comments
I think the reasoning is that
|
Doesn't look like there is anything left to say here. Those are just different by definition. Closing as stale, happy to reopen if anyone else has to say anything here. |
These seem like arbitrary distinctions to me. But my question goes beyond that, why is |
But the fact is that it doesn't use it.
Because it can describe both stage and particular output right now. |
My impression is that was a decision by the same people here 😬 in fact the Viewer team didn't seem to realize
OK but for .dvc files Also, |
@jorgeorpinel Correct, that was my decision, I started using meta first but then people from viewer team said that a separate field makes sense so I've switched. And I now agree that desc should be separate, they have different purpose. We spend too much time ranting about it here, that's counterproductive. I understand that you don't like it, but we need to disagree and commit to this. |
I already agreed to disagree some time ago. Not expecting a change, just leaving feedback. The docs probably do need more clarification on all of the details mentioned above though, as it's confusing (not a priority). p.s. I'm not ranting 😆, I explained my position/questions in detail above. |
@jorgeorpinel Thanks for clarifying! Sorry for putting it that way and overreacting. I thought that we've discussed this enough in linked issues/prs, and the reasoning was obvious, but now I understand that I was obviously very wrong, because I didn't consider that you weren't present during all of the discussions about it. So let me try to show a bigger picture here. In general, the desc is somewhat related to #1487 . So wanting to have a description for a particular dataset/artifact, that would be preserved during In case of pure dvc, Viewer is the first such user of desc, which will be using the descriptions for outputs. It won't use stage descriptions though, as there is no pipeline support there yet, but when/if it will be added - the stage desc will be there to use. |
Thank for the details! All interesting possibilities. I guess the answer to my question ("What are we trying to solve?") is that we're not sure but we see potential and will keep an eye on whether/how users employ this. I'd just clarify that I don't think comments are an alternative actually, I see more overlap with To make my position more constructive, I tried to come up with a specific format for So the only concern left from my part is on the consistency i.e. where in the formats are
Example: stages:
training:
desc: Training stage description
cmd:
- pip install -r requirements.txt
- python train.py
desc: Performs model training. Requires Python (and lib req's)
deps:
- train.py
- features
desc: We get these features from blah.
outs:
- model.pkl:
desc: Linear/xyz model to predict something
plots:
- logs.csv:
x: epoch
desc: Logs of the training process
# Completely ignored but valid user info.
meta:
name: Jonny Deep
pipeline: 'For deployment' |
Deps - maybe in the future. So far we didn't see any need for it. Same with cmd. Plots/metrics do support
Maybe in the future, so far we didn't see any need for it.
I don't think it should be In general, yes, both |
@efiop, regarding the technical format of |
@skshetry so far we only said that it should be text, so it could be markdown or other formats. |
Maybe there has been a discussion on how |
Yep, I think it'll displayed as a tooltip. We didn't think about it being Markdown yet. But as @efiop mentioned it doesn't change anything, right? |
@shcheklein, that answers my question. I just wanted to know if the desc for Anyway, moving on with the markdown for now in #5191, as it looks great. |
@efiop I find that position a bit contradictory vs. "[ IMO if the latter is the aim, making
Documented in #2086.
Thanks for the reference. I moved that part of the discussion there: #4960 (comment) |
That said, you did also state that it "serves as an aid to understanding particular artifacts". So if that's the aim, just at .dvc file-level, in |
* cml: copy edit rel #2065 * dag: copy edit rel #2063 * install: update autocomplete sample per iterative/dvc/issues/5149 * guide: rec WSL2 for Win * giude: mention that desc can go in metrics and plots (outs) per iterative/dvc#5025 (comment)
Seems like there are no action points for the nearest future here. CLosing for now. |
Hey sorry for the delay here. So to summarize my position (reading this after a while I see it's confusing). IMO to make
WDYT?
|
The new
desc
field made me rethink the ability to have user data in DVC files. Expand below for the current options (this emoji 👉 points to unique characteristics of each one):YAML comments
meta
fielddesc
fielddvc add/run --desc
can be used to write this.TL;DR
I see significant overlap. What are we trying to solve and what's the ideal design to implement it?
The text was updated successfully, but these errors were encountered: