Skip to content

Deps: pin cafaeval-protea at the row-numbering fix - #1129

Merged
github-actions[bot] merged 1 commit into
developfrom
chore/pin-cafaeval-at-the-row-numbering-fix
Nov 7, 2026
Merged

github-actions[bot] merged 1 commit into
developfrom
chore/pin-cafaeval-at-the-row-numbering-fix

Conversation

@frapercan

Copy link
Copy Markdown
Owner

Picks up cafaeval-protea#27,
merged at 203af0a28f0bb6f8cd0588c0d6d02ebf251eccce.

What it fixes

The NK/LK branch of compute_metrics passed np.arange(p.shape[0]) as
row_index for a prediction matrix it had already filtered to the proteins
carrying truth, while ids numbered the unfiltered ground truth. So from the
first dropped protein onward every row would have worn a neighbour's accession.
It now passes np.flatnonzero(proteins_has_gt), which the PK branch already
did.

That is why two panels have had no per-protein breakdown since the grid
artefact existed, with the reason on the record every time:

unmappable_row_numbering   LK molecular_function   10
unmappable_row_numbering   NK molecular_function   10

NK covered 3,390 of 3,394 ground-truth proteins and LK 2,433 of 2,444, so the
filter did remove rows and the numbering did not survive it. With this pin the
producer stops refusing and a paired comparison reaches eight panels
instead of six. PK:BPO stays refused: its weighted and unweighted branches
score different populations, which one row set cannot hold, and that is
structural.

Nothing already written moves

When no protein is dropped, flatnonzero of an all-true mask is arange, so
every per-protein table that was written stays identical and only the two that
were refused start being written.

Exploration 3 is decided and all four of its arms were evaluated on
e937e0e1, so this changes none of its numbers. That was the reason it stayed
in draft until the exploration closed.

Lock

poetry lock changes the reference, the resolved reference and the content
hash. poetry check --lock exits 0.

cafaeval-protea#27 names the NK/LK per-protein rows by the matrix rows they
came from. Its NK/LK branch passed `np.arange(p.shape[0])` as `row_index` for a
prediction matrix it had already filtered to the proteins carrying truth, while
`ids` numbered the unfiltered ground truth, so every row after the first
dropped protein would have worn a neighbour's accession. It now passes
`np.flatnonzero(proteins_has_gt)`, which is what the PK branch already did.

That is why NK:MFO and LK:MFO have had no per-protein breakdown: the producer
refused to write a mislabelled table, with `unmappable_row_numbering` on the
record each time. With this pin the refusal stops firing on its own and the
paired comparison reaches eight panels instead of six.

Nothing already written moves. When no protein is dropped, `flatnonzero` of an
all-true mask is `arange`, so every table that was written stays identical;
only the two that were refused start being written. Exploration 3 is decided
and its four arms were all evaluated on e937e0e1, so this changes none of its
numbers.
@github-actions
github-actions Bot enabled auto-merge (squash) November 7, 2026 11:48
@codecov

codecov Bot commented Nov 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.19%. Comparing base (d8bc801) to head (7ccfa8e).
⚠️ Report is 227 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1129      +/-   ##
===========================================
+ Coverage    87.85%   88.19%   +0.34%     
===========================================
  Files          306      390      +84     
  Lines        23414    30234    +6820     
===========================================
+ Hits         20570    26665    +6095     
- Misses        2844     3569     +725     

see 147 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
github-actions Bot merged commit 2272974 into develop Nov 7, 2026
19 checks passed
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.

1 participant