wandb_workspaces에서 제공되는 W&B Reports and Workspaces API를 사용하면, 웹에 게시해 결과를 공유할 수 있는 리포트를 생성하고, 트레이닝 및 fine-tuning 작업이 수행된 워크스페이스를 사용자 지정할 수 있습니다.
소스 코드 보기
W&B 리포트 and Workspace API는 Public Preview 상태입니다.
Help us improve these docs. Take our quick survey.
W&B Reports and Workspaces API를 사용해 프로그래밍 방식으로 리포트와 워크스페이스를 생성하고 관리합니다
wandb_workspaces에서 제공되는 W&B Reports and Workspaces API를 사용하면, 웹에 게시해 결과를 공유할 수 있는 리포트를 생성하고, 트레이닝 및 fine-tuning 작업이 수행된 워크스페이스를 사용자 지정할 수 있습니다.
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?