A library for programatically working with the Weights & Biases UI.
Project description
wandb-workspaces
wandb-workspaces
is a Python library for programatically working with Weights & Biases workspaces and reports.
Quickstart
1. Install
pip install wandb-workspaces
OR, you can install this as an extra from the wandb library:
pip install wandb[workspaces]
2. Create a workspace
import wandb_workspaces.workspaces as ws
workspace = ws.Workspace(
name="Example W&B Workspace",
entity="your-entity",
project="your-project",
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,
),
],
).save()
3. Create a report
import wandb_workspaces.reports as wr
report = wr.Report(
entity="your-entity",
project="your-project",
title="Example W&B Report",
blocks=[
wr.H1("This is a heading"),
wr.P("Some amazing insightful text about your project"),
wr.H2(
"This heading is collapsed",
collapsed_blocks=[wr.P("Our model is great!")],
),
wr.PanelGrid(
panels=[
wr.LinePlot(x="Step", y=["val_loss"]),
wr.BarPlot(metrics=["val_accuracy"]),
wr.ScalarChart(metric="f1_score", groupby_aggfunc="mean"),
]
),
],
).save()
More examples
See examples for more detailed usage.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wandb_workspaces-0.1.4.tar.gz
(63.6 kB
view hashes)
Built Distribution
Close
Hashes for wandb_workspaces-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9155ab00257ec18e85b4ca6ed6a2059b2d7f1ce45ad8092269330c4dbf4cbd71 |
|
MD5 | 82256d5c865f338347e59e430a0cfa01 |
|
BLAKE2b-256 | ac7650eb2e540e5d504edb5ad75652aa08d199056801e1ffbb0fc2eb60d65091 |