wandb_workspaces에서 액세스할 수 있는 W&B Reports 및 Workspaces API를 사용하면, 웹에 게시해 결과를 공유할 수 있는 리포트를 생성하고, 학습 및 파인튜닝 작업이 수행된 워크스페이스를 사용자 지정할 수 있습니다.
소스 코드 보기
W&B Report 및 Workspace API는 Public Preview 단계입니다.
W&B Reports 및 Workspaces API를 사용해 프로그래밍 방식으로 리포트와 워크스페이스를 생성하고 관리합니다
wandb_workspaces에서 액세스할 수 있는 W&B Reports 및 Workspaces API를 사용하면, 웹에 게시해 결과를 공유할 수 있는 리포트를 생성하고, 학습 및 파인튜닝 작업이 수행된 워크스페이스를 사용자 지정할 수 있습니다.
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()