Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-john-wbdocs-2044-rename-serverless-products.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
These examples show logging losses a couple of different ways using wandb.Run.log().
Using a dictionary
As a histogram
import wandb
# Initialize a new run
with wandb.init(project="log-list-values", name="log-dict") as run:
# Log losses as a dictionary
losses = [0.1, 0.2, 0.3, 0.4, 0.5]
run.log({"losses": losses})
run.log({f"losses/loss-{ii}": loss for ii, loss in enumerate(losses)})
import wandb
# Initialize a new run
with wandb.init(project="log-list-values", name="log-hist") as run:
# Log losses as a histogram
losses = [0.1, 0.2, 0.3, 0.4, 0.5]
run.log({"losses": wandb.Histogram(losses)})
For more, see the documentation on logging.
Logs
Experiments