0
0
MLOpsdevops~20 mins

Weights and Biases overview in MLOps - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
W&B Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is the primary purpose of Weights and Biases (W&B)?

Choose the main function of Weights and Biases in machine learning projects.

ATo provide cloud storage for large datasets only.
BTo replace the need for writing machine learning code.
CTo track experiments, visualize results, and manage datasets.
DTo automatically generate machine learning models without user input.
Attempts:
2 left
💡 Hint

Think about tools that help you keep track of your work and results.

💻 Command Output
intermediate
1:00remaining
What output does the command 'wandb login' produce on success?

After running wandb login and entering a valid API key, what is the expected output?

MLOps
wandb login
ACommand not found: wandb
BSuccessfully logged in. You can now use W&B features.
CError: API key invalid. Please try again.
DNo output; the command runs silently.
Attempts:
2 left
💡 Hint

Successful login usually confirms with a message.

🔀 Workflow
advanced
1:30remaining
Which step correctly initializes a W&B run in Python?

Identify the correct code snippet to start tracking an experiment run with W&B in Python.

MLOps
import wandb

# Which line correctly initializes a run?
Awandb.init(project="my-project")
Bwandb.start(project="my-project")
Cwandb.run(project="my-project")
Dwandb.track(project="my-project")
Attempts:
2 left
💡 Hint

Look for the function that starts a new run session.

Troubleshoot
advanced
1:30remaining
What error occurs if you try to log metrics without initializing a W&B run?

Consider this code snippet:

import wandb
wandb.log({"accuracy": 0.9})

What error will this produce?

ANo error; metrics are logged automatically
Bwandb.errors.CommError: Run not initialized
CTypeError: log() missing required positional argument
DRuntimeError: You must call wandb.init() before wandb.log()
Attempts:
2 left
💡 Hint

Think about what must happen before logging metrics.

Best Practice
expert
2:00remaining
Which practice ensures reproducibility when using W&B in a team?

Choose the best practice to help a team reproduce machine learning experiments tracked with W&B.

ALog all hyperparameters, code versions, and environment details in W&B runs.
BAvoid using W&B and rely on manual notes.
CShare API keys openly in code for easy access.
DOnly log final accuracy metrics to reduce clutter.
Attempts:
2 left
💡 Hint

Think about what information helps others repeat your work exactly.