wandb_workspaces から利用できる W&B Reports and Workspaces API を使用すると、調査結果の共有に向けて Web 上で公開できる Reports を作成できるほか、トレーニングやファインチューニングの作業を行った Workspace をカスタマイズできます。
ソースコードを表示
W&B Report and Workspace API はパブリックプレビューです。
Help us improve these docs. Take our quick survey.
W&B Reports and Workspaces API を使用して、Reports と Workspace をプログラムから作成・管理します
wandb_workspaces から利用できる W&B Reports and Workspaces API を使用すると、調査結果の共有に向けて Web 上で公開できる Reports を作成できるほか、トレーニングやファインチューニングの作業を行った Workspace をカスタマイズできます。
pip install wandb-workspaces
import wandb_workspaces.reports.v2 as wr
# 作成
report = wr.Report(
entity="<team_entity>",
project="<project_name>",
title='Quickstart Report',
description="That was easy!"
)
# レポートを保存
report.save()
report.blocks = [
wr.TableOfContents(),
wr.H1("Text and images example"),
wr.P("Lorem ipsum dolor sit amet."),
]
report.save()
# インポート方法
import wandb_workspaces.workspaces as ws
# Workspaceを作成する
ws.Workspace(
entity="<team_entity>", # Workspaceを所有するentity
project="<project_name>", # Workspaceに関連付けられたプロジェクト
sections=[
ws.Section(
name="<Validation Metrics>",
panels=[
wr.LinePlot(x="Step", y=["<val_loss>"]),
wr.BarPlot(metrics=["<val_accuracy>"]),
wr.ScalarChart(metric="<f1_score>", groupby_aggfunc="<mean>"),
],
is_open=True,
),
],
)
workspace.save()
Was this page helpful?