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.
これらの例では、wandb.Run.log() を使用して、いくつかの異なる方法で損失(loss)を ログ に記録する方法を示します。
辞書を使用する場合
ヒストグラムとして記録する場合
import wandb
# 新しい run を初期化します
with wandb.init(project="log-list-values", name="log-dict") as run:
# 損失のリストを辞書としてログに記録します
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)})
import wandb
# 新しい run を初期化します
with wandb.init(project="log-list-values", name="log-hist") as run:
# 損失をヒストグラムとしてログに記録します
losses = [0.1, 0.2, 0.3, 0.4, 0.5]
run.log({"losses": wandb.Histogram(losses)})
詳細については、センシング(ログ)に関するドキュメント を参照してください。