Skip to content

Allow single float threshold in compare_batch_results#232

Merged
agentmorris merged 2 commits into
mainfrom
batch-comparison-options
Jun 25, 2026
Merged

Allow single float threshold in compare_batch_results#232
agentmorris merged 2 commits into
mainfrom
batch-comparison-options

Conversation

@agentmorris

Copy link
Copy Markdown
Owner

No description provided.

rishirevuri and others added 2 commits June 24, 2026 10:17
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 0cb8f8a into main Jun 25, 2026
17 checks passed
@agentmorris agentmorris deleted the batch-comparison-options branch June 25, 2026 02:12
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