Skip to main content
These classes comprise the core building blocks for tracking machine learning experiments, managing artifacts, and configuring SDK behavior. These foundational classes enable you to log metrics, store model checkpoints, version datasets, and manage experiment configurations with full reproducibility and collaboration features.
For more details on using these classes in ML experiments, consult the Experiments and Artifacts docs.

Core classes

ClassDescription
RunThe primary unit of computation logged by W&B, representing a single ML experiment with metrics, configurations, and outputs.
ArtifactFlexible and lightweight building block for dataset and model versioning with automatic deduplication and lineage tracking.
SettingsConfiguration management for the W&B SDK, controlling behavior from logging to API interactions.

Getting started

Track an experiment

Create and track a machine learning experiment with metrics logging:

Version a model artifact

Create and log a versioned model artifact with metadata:

Configure SDK settings

Customize W&B SDK behavior for your specific requirements:
Track relationships between datasets, models, and evaluations: