Skip to content

Allow float thresholds in compare_batch_results#231

Merged
agentmorris merged 1 commit into
agentmorris:mainfrom
rishirevuri:compare-batch-results-float-threshold
Jun 25, 2026
Merged

Allow float thresholds in compare_batch_results#231
agentmorris merged 1 commit into
agentmorris:mainfrom
rishirevuri:compare-batch-results-float-threshold

Conversation

@rishirevuri

Copy link
Copy Markdown
Contributor

This change allows the direct pairwise compare_batch_results API to accept a single numeric detection threshold in addition to the existing category-to-threshold dictionary format. Numeric thresholds are normalized to a default threshold dictionary, preserving the existing per-category dictionary behavior and the current default fallback logic.

Focused tests were added for float normalization, integer normalization, existing dictionary preservation, invalid input handling, and the direct pairwise path that previously failed when numeric thresholds reached the existing .values() logic.

This change allows the direct pairwise compare_batch_results API to accept a single numeric detection threshold in addition to the existing category-to-threshold dictionary format. Numeric thresholds are normalized to a default threshold dictionary, preserving the existing per-category dictionary behavior and the current default fallback logic.

Focused tests were added for float normalization, integer normalization, existing dictionary preservation, invalid input handling, and the direct pairwise path that previously failed when numeric thresholds reached the existing .values() logic.
@agentmorris agentmorris merged commit 983adab into agentmorris:main Jun 25, 2026
2 checks passed
@agentmorris

Copy link
Copy Markdown
Owner

Merged via PR 232, thank you for your contribution.

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.

2 participants