wandb_workspaces から利用できる W&B Reports と Workspaces API を使用すると、知見を共有するために Web上で公開できるレポートを作成したり、学習やファインチューニングを行ったワークスペースをカスタマイズしたりできます。
ソースコードを表示
W&B Report および Workspace API は現在 Public Preview 段階です。
W&B Reports と Workspaces API を使用して、レポートとワークスペースをプログラムで作成および管理します
wandb_workspaces から利用できる W&B Reports と Workspaces API を使用すると、知見を共有するために Web上で公開できるレポートを作成したり、学習やファインチューニングを行ったワークスペースをカスタマイズしたりできます。
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
# ワークスペースを作成する
ws.Workspace(
entity="<team_entity>", # ワークスペースを所有するエンティティ
project="<project_name>", # ワークスペースに関連付けられたプロジェクト
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?