training_extensions
training_extensions copied to clipboard
Add test for FMeasure confidence threshold retention
Is your request related to a specific problem or use case? Please describe.
FMeasure.reset() clears predictions and targets but retains the best confidence threshold. The existing test does not verify that a lower-scoring evaluation preserves that threshold.
What should the feature do?
Add a test that computes F1 after a reset with mismatched predictions and targets. Verify that the lower F1 score does not replace the previously recorded best confidence threshold. CC: @leoll2