Text Table
Created on July 29|Last edited on September 9
Comment
Here's an example of a text table in W&B. The code to log this is very simple.
# Method 1
data = [["I love my phone", "1", "1"],["My phone sucks", "0", "-1"]]
wandb.log({"examples": wandb.Table(data=data, columns=["Text", "Predicted Label", "True Label"])})
# Method 2
table = wandb.Table(columns=["Text", "Predicted Label", "True Label"])
table.add_data("I love my phone", "1", "1")
table.add_data("My phone sucks", "0", "-1")
wandb.log({"examples": table})
Run sample code →
examples
Input
Output (Predicted Label)
Output (True Label)
Text
glad-snowball-1
glad-snowball-1
table
1
1
horse
0
-1
cat
-1
-1
dog
-1
-1
cow
-1
-1
Loading...
Run set
1
Add a comment