Skip to content

Commit ec5b387

Browse files
authored
[WEAVE] Column mapping update (wandb#1887)
## Description Updates documentation for the Weave `column_map` attribute to be more accurate.
1 parent ffec731 commit ec5b387

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

weave/guides/evaluation/builtin_scorers.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,9 @@ summarization_scorer = SummarizationScorer(
457457

458458
## Use column mapping
459459

460-
You can use the `column_map` attribute to tell the scorer which dataset columns to use. The available keys for `column_map` are:
461-
- `output` (required): Model prediction
462-
- `target` (required): Reference answer to compare with
460+
You can use the `column_map` attribute to tell the scorer which dataset columns to use. The `column_map` attribute requires you to set the following keys:
461+
- `output`: Model prediction
462+
- `target`: Reference answer to compare with
463463

464464
The following example maps the `output` and `target` columns to a dataset's `model_output` and `answer` columns, respectively:
465465

@@ -472,4 +472,4 @@ similarity_scorer.column_map = {
472472
"output": "model_output", # The model's generated text
473473
"target": "answer" # The expected or reference response
474474
}
475-
```
475+
```

0 commit comments

Comments
 (0)