Jul*_*lep 7 python plot machine-learning wandb
我正在使用权重和偏差(wandb)。我想在使用增量日志记录时将多个图分组为一个图,有什么方法可以做到这一点吗?
假设我们有 10 个指标,我可以将它们增量添加到项目中,逐步构建 10 个图表:
import wandb
import math
N_STEPS = 100
wandb.init(project="someProject", name="testMultipleLines")
for epoch in range(N_STEPS):
log = {}
log['main_metric'] = epoch / N_STEPS # some main metric
# some other metrics I want to have all on 1 plot
other_metrics = {}
for j in range(10):
other_metrics[f'metric_{j}'] = math.sin(j * math.pi * (epoch / N_STEPS))
log['other_metrics'] = other_metrics
wandb.log(log)
Run Code Online (Sandbox Code Playgroud)
默认情况下,它在 wandb 界面上显示为 11 个不同的图。如何通过 API(不使用 Web 界面)对它们进行分组,以便main_metric在一个图形上将它们全部other_metrics集中在第二个图形上?
| 归档时间: |
|
| 查看次数: |
1716 次 |
| 最近记录: |