Parameterize Runs with params.yaml
Sweep hyperparameters without editing code.
Stop Editing Code to Tune
Changing a learning rate by editing train.py is messy and hard to track. DVC reads settings from a file called params.yaml instead. 🎛️
What params.yaml Holds
The params.yaml file is plain YAML holding your hyperparameters, grouped by stage. It becomes the single place to change run settings.
train:
learning_rate: 0.01
epochs: 20
prep:
test_size: 0.2All lessons in this course
- Stages: Ingest, Prep, Train, Eval
- Define a Pipeline with DVC Stages
- Cache and Skip Unchanged Steps
- Parameterize Runs with params.yaml