Skip to content

simpcat.log()

simpcat.log(
data: dict[str, Any],
step: int | None = None,
commit: bool | None = None
) -> None

Log metrics to the active run. Matches wandb.log().

  • data — Dict of metric names to values (scalars, Audio, Image, or lists of media).
  • step — Explicit step. If None, uses the auto-incrementing counter.
  • commit — Controls when metrics are flushed. None (default) means True when step is None, False when step is provided. True flushes all buffered and current metrics and advances the step counter. False buffers scalars until the next commit=True call.
  • RuntimeError — If no run is active (call simpcat.init() first).