Skip to main content

Documentation Index

Fetch the complete documentation index at: https://wb-21fd5541-style-guide-support-models-articles-20260527-00.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

When you visualize metrics against an X-axis other than Step, expect to see fewer data points. You must log metrics at the same Step to keep them synchronized. W&B only samples metrics logged at the same Step when it interpolates between samples. To keep related metrics aligned on the same Step, bundle them into a single log() call. For example, instead of:
import wandb
with wandb.init() as run:
    run.log({"Precision": precision})
    ...
    run.log({"Recall": recall})
Use a single call:
import wandb
with wandb.init() as run:
    run.log({"Precision": precision, "Recall": recall})
To manually control the step parameter, synchronize metrics in the code:
with wandb.init() as run:
    step = 100  # Example step value
    # Log Precision and Recall at the same step
    run.log({"Precision": precision, "Recall": recall}, step=step)
Make sure the step value remains the same in both log() calls so that the metrics log under the same step and sample together. The step value must increase monotonically in each call. Otherwise, W&B ignores the step value.
Experiments Metrics