Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStatsPractice TestsCertifications

Categories

🎓 Certifications
🤖 Artificial Intelligence
☁️ Cloud and Infrastructure
💾 Data and Databases
💼 Professional Skills
🎯 Programming and Development
🔒 Security and Networking
📚 Specialized Topics
CheatGrid
HomeAboutTopicsPricingMy VaultStatsPractice TestsCertifications
LVLEVEL 0
0/5 XP
GitHub
© 2026 CheatGrid™. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Weights & Biases (W&B) for Experiment Tracking Cheat Sheet

Weights & Biases (W&B) for Experiment Tracking Cheat Sheet

Back to Data Science
Updated 2026-05-15
Next Topic: Xarray Cheat Sheet

Weights & Biases (W&B) is an MLOps platform for tracking machine learning experiments, managing artifacts, orchestrating hyperparameter sweeps, and collaborating across teams. W&B captures metrics, hyperparameters, model checkpoints, and datasets throughout the ML lifecycle, providing visual dashboards, automated comparisons, and reproducibility tools. It integrates seamlessly with popular frameworks (PyTorch, TensorFlow, scikit-learn, Hugging Face) and scales from local development to distributed training. Unlike purely local tools, W&B centralizes experiment history in a cloud or self-hosted backend, enabling teams to compare runs, share insights through Reports, and promote models via Registry—making it essential for collaborative model development and production workflows.

What This Cheat Sheet Covers

This topic spans 12 focused tables and 106 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Run Initialization and ConfigurationTable 2: Logging Metrics and HyperparametersTable 3: Artifact Logging and VersioningTable 4: W&B Tables for Data VisualizationTable 5: Sweeps for Hyperparameter OptimizationTable 6: Model Registry and Lifecycle ManagementTable 7: Integration with ML FrameworksTable 8: Offline Mode and Air-Gapped EnvironmentsTable 9: Distributed Training and Multi-GPU LoggingTable 10: W&B Reports for CollaborationTable 11: Public API for Data Export and AutomationTable 12: Comparison with MLflow

Table 1: Run Initialization and Configuration

Every W&B session starts with a wandb.init() call, and the arguments you pass here shape how the run shows up in your dashboard later. These are the levers for naming runs, grouping them by team or job type, attaching searchable tags, resuming a crashed job, and capturing the hyperparameters that make a result reproducible — get the config right at init time and the rest of your tracking falls into place.

MethodExampleDescription
wandb.init()
with wandb.init(project="my-project") as run:
pass
• Initialize a W&B run to track experiments in the specified project
• Use context manager to auto-finalize
wandb.init() with entity
wandb.init(entity="team-name", project="proj")
Start a run under a specific W&B team or organization entity instead of personal account.
wandb.init() with config
wandb.init(config={"learning_rate": 0.01, "epochs": 10})
• Pass hyperparameters and configuration as a dictionary
• accessible via run.config.
wandb.init() with job_type
wandb.init(job_type="train")
Tag run with a job type (e.g., "train", "eval", "preprocess") to organize runs by workflow stage.
wandb.init() with tags
wandb.init(tags=["baseline", "v1.0"])
Attach searchable tags to a run for filtering and grouping in the UI.
wandb.init() with notes
wandb.init(notes="Experiment with dropout=0.5")
Add human-readable notes describing the run's purpose or changes.

More in Data Science

  • Time Series Analysis Cheat Sheet
  • Xarray Cheat Sheet
  • AB Testing and Online Experimentation Cheat Sheet
  • Design of Experiments (DOE) Cheat Sheet
  • Network Analysis with NetworkX Cheat Sheet
  • R for Data Science and Tidyverse Cheat Sheet
View all 47 topics in Data Science