Now that we have multiple experiments, models, processed datasets, the question is how do we revert back to an older version of a model file? Or how can we get the previous version of the dataset if it was changed at some point?
Let's say we want to get the previous
model.pkl file. The short answer is:
$ git checkout baseline-experiment train.dvc $ dvc checkout train.dvc
These two commands will bring the previous model file to its place in the workspace.
To fully restore the previous experiment we just run
git checkout and
dvc checkout without specifying a target:
$ git checkout baseline-experiment $ dvc checkout