Skip to content

Commit 60a40cd

Browse files
committed
Merge remote-tracking branch 'origin/main' into release-notes-to-hugo
2 parents 0a796ce + 59d2acb commit 60a40cd

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

content/guides/models/track/log/log-tables.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,11 @@ best_checkpt_table = wandb.Table(
102102
columns=["col1", "col2", "col3"], data=best_checkpt_table.data
103103
)
104104

105+
# Initialize the Run
106+
run = wandb.init()
107+
105108
# Log the updated table to Weights & Biases
106-
wandb.log({table_name: best_checkpt_table})
109+
run.log({table_name: best_checkpt_table})
107110
```
108111

109112
## Retrieve data
@@ -119,7 +122,7 @@ After you generate a table of data in your script, for example a table of model
119122

120123
### Log a table to a run
121124

122-
Use `wandb.log()` to save your table to the run, like so:
125+
Use `run.log()` to save your table to the run, like so:
123126

124127
```python
125128
run = wandb.init()
@@ -207,4 +210,4 @@ join_at.add(join_table, "synth_explore")
207210
run.log_artifact(join_at)
208211
```
209212

210-
[Read this tutorial](https://wandb.ai/stacey/cshanty/reports/Whale2Song-W-B-Tables-for-Audio--Vmlldzo4NDI3NzM) for an example on how to combine two previously stored tables stored in different Artifact objects.
213+
[Read this tutorial](https://wandb.ai/stacey/cshanty/reports/Whale2Song-W-B-Tables-for-Audio--Vmlldzo4NDI3NzM) for an example on how to combine two previously stored tables stored in different Artifact objects.

0 commit comments

Comments
 (0)