Skip to content

Add sample count to the results summary table#1285

Open
ErenAta16 wants to merge 1 commit into
huggingface:mainfrom
ErenAta16:add-sample-count-to-results-table
Open

Add sample count to the results summary table#1285
ErenAta16 wants to merge 1 commit into
huggingface:mainfrom
ErenAta16:add-sample-count-to-results-table

Conversation

@ErenAta16

Copy link
Copy Markdown

The markdown table printed at the end of an evaluation run shows the metric value and its standard error, but not how many samples the metric was computed on. A task that silently evaluated zero (or very few) samples, for example because of a misconfigured hf_filter or split name, rendered the same as a task that ran normally and scored zero on every item. There was no way to tell the two apart from the table alone.

DetailsLogger already records one Detail entry per evaluated sample through details_logger.log(), so aggregate() now also stores that count on each task's CompiledDetail as num_samples, along with the total across all tasks on CompiledDetailOverAllTasks. make_results_table reads the count from summary_tasks and adds a Samples column, falling back to a blank value for callers that do not pass summary_tasks at all, so existing callers keep working unchanged.

Fixes #804

The markdown table printed at the end of an evaluation run shows the
metric value and its standard error, but not how many samples the
metric was computed on. A task that silently evaluated zero (or very
few) samples, for example because of a misconfigured hf_filter or
split name, rendered the same as a task that ran normally and scored
zero on every item. There was no way to tell the two apart from the
table alone.

DetailsLogger already records one Detail entry per evaluated sample
through details_logger.log(), so aggregate() now also stores that
count on each task's CompiledDetail as num_samples, along with the
total across all tasks on CompiledDetailOverAllTasks. make_results_table
reads the count from summary_tasks and adds a Samples column, falling
back to a blank value for callers that do not pass summary_tasks at
all, so existing callers keep working unchanged.

Fixes huggingface#804
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FT] showing count in Markdown summary table

1 participant