Skip to content

feat: add sample count column to results table#1280

Open
SnehaDeshmukh28 wants to merge 1 commit into
huggingface:mainfrom
SnehaDeshmukh28:feat/show-sample-count-in-results-table
Open

feat: add sample count column to results table#1280
SnehaDeshmukh28 wants to merge 1 commit into
huggingface:mainfrom
SnehaDeshmukh28:feat/show-sample-count-in-results-table

Conversation

@SnehaDeshmukh28

Copy link
Copy Markdown

Closes #804

What this does

Adds a "Num. samples" column to the markdown summary table printed at the end of evaluation, so users can immediately see how many samples each task was evaluated on.

Before:
| Task | Version | Metric | Value | | Stderr |

After:
| Task | Version | Num. samples | Metric | Value | | Stderr |

How it works

The count is sourced from effective_num_docs, which is already tracked per task in config_tasks inside the result dict. When config_tasks is absent (e.g. older result dicts loaded from disk), the column is still present but left blank — no breaking change.

Tests

Added 4 unit tests covering:

  • column present with config_tasks
  • column gracefully blank without config_tasks
  • count appears only on first metric row per task (not repeated)
  • stderr row format unchanged

Closes huggingface#804

Add a "Num. samples" column to the markdown summary table printed at the
end of evaluation. The count is sourced from `effective_num_docs` already
tracked per task in `config_tasks`. When `config_tasks` is absent the
column is still present but left blank, preserving backward compatibility.
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