예를 들어, 배치(batch)당 트레이닝 정확도와 에포크(epoch)당 검증 정확도를 로그로 남기고 싶을 수 있습니다. 방법은 간단합니다. 메트릭과 함께Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-update-training-api-26.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
batch나 epoch 같은 인덱스를 로그에 포함하세요. 한 단계에서는 wandb.Run.log({'train_accuracy': 0.9, 'batch': 200})를 사용하고, 다른 단계에서는 wandb.Run.log({'val_accuracy': 0.8, 'epoch': 4})를 사용합니다. UI의 각 차트에서 원하는 값을 x축으로 설정할 수 있습니다. 특정 인덱스를 기본 x축으로 설정하려면 Run.define_metric()을 사용하세요. 위 예시의 경우 다음 코드를 사용할 수 있습니다: