Evaluate. Replace in previous commits

Hi everyone,

I am a beginner in DVC and GIT.

I have a long chain of commits. And my evaluate.py file has changed significantly.

And I would like to use it in previous commits to compare new metrics. Is it possible to apply my new evaluate.py to previous commits.

But when I wrote about commits I thought about dvc.yaml where some stage’s parameters are also described for example plots.

So how could I do it? What is the best practice?

Interesting question! I don’t know of any simple way to do what you want. One way that might work is to checkout each old revision you want to update, apply the changes to evaluate.py and dvc.yaml, and do dvc exp run, which will run the pipeline with the changes and save the output.

1 Like

Thank you for your reply!