> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 값 목록을 로깅하려면 어떻게 하나요?

값 목록(예: step별 loss)을 [`wandb.Run.log()`](https://docs.coreweave.com/ko/products/wandb/ref/python/experiments/run#method-runlog/)으로 로깅할 수 있습니다. 다음 예시는 두 가지 일반적인 접근 방식을 보여줍니다: 목록을 딕셔너리 항목으로 로깅하거나, 분포를 시각화하기 위해 히스토그램으로 로깅합니다.

**딕셔너리로**

```python theme={"system"}
import wandb

# 새 run 초기화
with wandb.init(project="log-list-values", name="log-dict") as run:
    # loss를 딕셔너리로 로깅
    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)})
```

**히스토그램으로**

```python theme={"system"}
import wandb

# 새 run 초기화
with wandb.init(project="log-list-values", name="log-hist") as run:
    # loss를 히스토그램으로 로깅
    losses = [0.1, 0.2, 0.3, 0.4, 0.5]
    run.log({"losses": wandb.Histogram(losses)})
```

자세한 내용은 [객체 및 미디어 로깅](https://docs.coreweave.com/ko/products/wandb/track/log.md)을 참조하세요.

***

[로그](https://docs.coreweave.com/ko/support/models/tags/logs.md)[Experiments](https://docs.coreweave.com/ko/support/models/tags/experiments.md)
