英文:
DVC - apply a pipeline to multiple source files
问题
我有100个源文件要通过管道处理。有没有一种循环遍历列表的模式,每次为同一个管道生成新的源文件和输出文件名?
谢谢!
英文:
I have 100 source files to push through a pipeline. Is there a pattern for looping over a list, generating a new source and output file name each time for the same pipeline?
Thanks!
答案1
得分: 1
我能为您翻译这些代码部分:
dvc.yaml
stages:
example:
foreach: ${some_param}
do:
cmd:
- echo ${item}
params.yaml
some_param:
- files/file1
- files/file2
- files/file3
英文:
If you can elaborate more, that would be helpful, but maybe something like this is what you are looking for?
dvc.yaml
stages:
example:
foreach: ${some_param}
do:
cmd:
- echo ${item}
params.yaml
some_param:
- files/file1
- files/file2
- files/file3
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论