Skip to main content
W&B 의 메트릭 이름은 UI 에서 원활하게 정렬하고 필터링할 수 있도록 GraphQL 네이밍 규칙을 따라야 합니다.

유효한 메트릭 이름

  • Allowed characters: Letters (A-Z, a-z), digits (0-9), and underscores (_)
  • Starting character: Names must start with a letter or underscore
  • Pattern: Metric names should match /^[_a-zA-Z][_a-zA-Z0-9]*$/
이 규칙을 따르지 않는 메트릭은 W&B UI 에서 정렬이나 필터링이 불가능할 수 있습니다.

예시

Valid metric names:
with wandb.init() as run:
  run.log({"accuracy": 0.9, "val_loss": 0.1, "epoch_5": 5})
  run.log({"modelAccuracy": 0.95, "learning_rate": 0.001})
Invalid metric names (avoid these):
with wandb.init() as run:
  run.log({"acc,val": 0.9})  # Contains comma
  run.log({"loss-train": 0.1})  # Contains hyphen
  run.log({"test acc": 0.95})  # Contains space
  run.log({"5_fold_cv": 0.8})  # Starts with number

권장 해결 방법

유효하지 않은 문자를 언더스코어( _ )와 같은 유효한 문자로 대체하세요:
  • "test acc" 대신 "test_acc" 사용
  • "loss-train" 대신 "loss_train" 사용
  • "acc,val" 대신 "acc_val" 사용
더 자세한 정보는 Metric naming constraints 를 참조하세요.