0
0
MLOpsdevops~10 mins

DVC (Data Version Control) basics in MLOps - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to initialize a new DVC project in the current directory.

MLOps
dvc [1]
Drag options to blanks, or click blank then click option'
Ainit
Bstart
Ccreate
Dsetup
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'dvc start' instead of 'dvc init'.
Trying 'dvc create' which is not a valid command.
2fill in blank
medium

Complete the code to add a data file named 'data.csv' to DVC tracking.

MLOps
dvc [1] data.csv
Drag options to blanks, or click blank then click option'
Apush
Btrack
Ccommit
Dadd
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'dvc track' which is not a valid DVC command.
Using 'dvc push' which uploads data but does not track it.
3fill in blank
hard

Fix the error in the command to push data to remote storage.

MLOps
dvc [1] origin
Drag options to blanks, or click blank then click option'
Apull
Bclone
Cpush
Dfetch
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'dvc pull' which downloads data instead of uploading.
Using 'dvc clone' which is for git repositories.
4fill in blank
hard

Fill both blanks to create a DVC pipeline stage named 'train' that runs 'python train.py'.

MLOps
dvc run --name [1] -- [2] train.py
Drag options to blanks, or click blank then click option'
Atrain
Bpython
Cbash
Dexecute
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'bash' instead of 'python' to run the Python script.
Omitting the stage name or using a wrong name.
5fill in blank
hard

Fill all three blanks to create a DVC pipeline stage named 'evaluate' that runs 'python eval.py' and depends on 'model.pkl'.

MLOps
dvc run --name [1] --deps [2] -- [3] eval.py
Drag options to blanks, or click blank then click option'
Aevaluate
Bmodel.pkl
Cpython
Dtrain
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'train' as the stage name instead of 'evaluate'.
Using 'bash' or other interpreters instead of 'python'.