0
0
MLOpsdevops~10 mins

Model documentation and model cards 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 create a basic model card title.

MLOps
model_card = {"title": "[1]"}
Drag options to blanks, or click blank then click option'
AModel Info
BModel Documentation
CMy Model Card
DCard Title
Attempts:
3 left
💡 Hint
Common Mistakes
Using a generic term like 'Card Title' instead of a descriptive title.
2fill in blank
medium

Complete the code to add a description field to the model card.

MLOps
model_card["description"] = "[1]"
Drag options to blanks, or click blank then click option'
AThis model predicts house prices.
BModel accuracy is high.
CVersion 1.0
DCreated by team
Attempts:
3 left
💡 Hint
Common Mistakes
Using metadata like version or creator instead of description.
3fill in blank
hard

Fix the error in the model card dictionary to include the 'metrics' field correctly.

MLOps
model_card = {"title": "House Price Model", "metrics": [1]
Drag options to blanks, or click blank then click option'
A{"accuracy": 0.95, "rmse": 3.2}
B["accuracy", "precision"]
C"accuracy: 0.95, rmse: 3.2"
Daccuracy=0.95, rmse=3.2
Attempts:
3 left
💡 Hint
Common Mistakes
Using a list or string instead of a dictionary for metrics.
4fill in blank
hard

Fill both blanks to create a model card dictionary with 'version' and 'author' fields.

MLOps
model_card = {"version": [1], "author": "[2]"}
Drag options to blanks, or click blank then click option'
A1.0
B0.1
CAlice
DBob
Attempts:
3 left
💡 Hint
Common Mistakes
Putting author as a number or version as a name.
5fill in blank
hard

Fill all three blanks to add 'license', 'date', and 'tags' fields to the model card.

MLOps
model_card.update({"license": "[1]", "date": "[2]", "tags": [3])
Drag options to blanks, or click blank then click option'
AMIT
B2024-05-01
C["regression", "housing"]
DGPL
Attempts:
3 left
💡 Hint
Common Mistakes
Using license as a list or date as a number.