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.
W&B는 각 run 에서 로그를 남긴 Artifacts 와 해당 run 에서 사용된 Artifacts 를 추적하여 artifact 그래프를 구축합니다. 이 그래프는 Runs 와 Artifacts 를 노드로 나타내는 이분 그래프(bipartite)이자 유향 비순환 그래프(directed acyclic graph)입니다. 예시는 여기에서 확인하실 수 있습니다 (그래프를 확장하려면 “Explode”를 클릭하세요).
Public API를 사용하여 Artifact 또는 Run 에서 시작하여 프로그래밍 방식으로 그래프를 탐색할 수 있습니다.
api = wandb.Api()
artifact = api.artifact("project/artifact:alias")
# Artifact에서 그래프 위쪽으로 이동:
producer_run = artifact.logged_by()
# Artifact에서 그래프 아래쪽으로 이동:
consumer_runs = artifact.used_by()
# Run에서 그래프 아래쪽으로 이동:
next_artifacts = consumer_runs[0].logged_artifacts()
# Run에서 그래프 위쪽으로 이동:
previous_artifacts = producer_run.used_artifacts()
api = wandb.Api()
run = api.run("entity/project/run_id")
# Run에서 그래프 아래쪽으로 이동:
produced_artifacts = run.logged_artifacts()
# Run에서 그래프 위쪽으로 이동:
consumed_artifacts = run.used_artifacts()
# Artifact에서 그래프 위쪽으로 이동:
earlier_run = consumed_artifacts[0].logged_by()
# Artifact에서 그래프 아래쪽으로 이동:
consumer_runs = produced_artifacts[0].used_by()