wandb_workspaces에서 접근할 수 있는 W&B Reports 및 Workspaces API를 사용하면 발견한 내용을 공유하기 위해 웹에 게시할 수 있는 리포트를 생성할 수 있을 뿐만 아니라, 트레이닝과 파인튜닝 작업이 수행된 워크스페이스를 사용자 지정할 수 있습니다.
소스 코드 보기
W&B Reports 및 Workspaces 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>", # 워크스페이스를 소유한 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?