Conversation
…ependencias del proyecto
Perf now accepts score_func/error_func as a single callable or a list of callables (both can be given simultaneously to mix score-type and error-type measures), building a composite statistic evaluated on the same paired bootstrap samples. Every metrics.py wrapper exposes a .measure() factory tagged with its BiB direction so measures compose, e.g. score_func=[f1_score.measure(average='macro'), recall_score.measure(average='macro')]. Bump version to 0.2.0. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Perfacceptsscore_func/error_funcas a single callable or a list of callables (both can be given simultaneously to mix score-type and error-type measures into one instance), building a composite statistic evaluated on the same paired bootstrap samples — implements the design plan from Plan: Multi-measure API for Perf/Difference (e.g. macro-F1 + macro-recall together) #30.metrics.pywrapper exposes a.measure()factory tagged with itsBiBdirection, so metrics compose, e.g.score_func=[f1_score.measure(average='macro'), recall_score.measure(average='macro')].Perf.best,Perf.difference(),Difference.p_value(), anddataframe()/plot()handle per-columnBiB/naming for the multi-measure case; single-measure usage is unchanged (existing tests pass unmodified).Closes #30.
Test plan
pytest CompStats— 65 passed (52 pre-existing + 13 new), no regressionsPerf/Difference/plot()/dataframe()with real classifiersBiBsign logic inbest/difference()/p_value()🤖 Generated with Claude Code