Create an Eval Table by passing the DataFrame to wandb.EvalTable. Use the input_columns, output_columns, and score_columns arguments to identify the role of each column.The following example uses:
image_id as the input
predicted_label as the output
correct and confidence as scores
with wandb.init(project="classifier-eval-table-demo") as run: eval_table = wandb.EvalTable( dataframe=df, input_columns=["image_id"], output_columns=["predicted_label"], score_columns=["correct", "confidence"], ) run.log({"validation_predictions_eval": eval_table})
Convert a W&B Table to an Eval Table
Use the conversion banner to convert an existing W&B Table to an Eval Table:
Navigate to the project that contains the W&B Table.
Select the Try now button in the conversion banner. The button opens ARIA with information about which table to convert.
Follow the prompts in ARIA’s conversation window.
If you closed the banner or do not see it, open ARIA manually:
Select the blue circle in the upper-right corner of the page to open ARIA.
Enter /convert-eval-table in the ARIA conversation.
Select Send, represented by the upward-pointing arrow () in the lower-right corner of the conversation.
Converting a W&B Table does not modify the original table.