Closed mattlbeck closed 1 month ago
plots
in those examples is a top-level key, not a subkey under a stage. So your example should look like:
stages:
train:
cmd: echo "train stage"
outs:
- plot.csv
plots:
- plot.csv:
y: [A, B]
We have kept simple plots supported under stages for convenience and to avoid breaking old dvc.yaml files, but to support more flexible plots, we had to separate them from stage outputs (for example, plots can now be defined with outputs from multiple stages).
I see, makes sense. Thanks for the clarification!
Bug Report
Description
Most of the examples given by https://dvc.org/doc/user-guide/project-structure/dvcyaml-files#available-configuration-fields do not appear to result in valid yaml with error: "expected str in ... -> y"
Reproduce
To get a valid dvc.yaml you can modify to
y: A
Expected
Valid yaml, as per the documented examples
Environment information
Additional output with
--verbose