Skip to content

Aggregate boolean statistics as numeric fractions - #339

Open
sylvesterkaczmarek wants to merge 1 commit into
google-research:mainfrom
sylvesterkaczmarek:fix/boolean-statistic-aggregation
Open

sylvesterkaczmarek wants to merge 1 commit into
google-research:mainfrom
sylvesterkaczmarek:fix/boolean-statistic-aggregation

Conversation

@sylvesterkaczmarek

Copy link
Copy Markdown

Boolean statistics currently reduce through logical dot products rather than numeric sums, giving incorrect coverage fractions for unweighted evaluations.

Promote boolean statistics to a numeric dtype before aggregation so both the numerator and valid-point denominator accumulate correctly.

Fixes #310 (boolean aggregation; the separate Opportunism definition question is unchanged).

Tests: 17 aggregation tests passed, including weighted, masked and cross-chunk regressions.

Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
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.

Boolean statistics (Covered, Confident, JaccardDistant) aggregate to 1.0 without float weights

1 participant