Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/6491 display the number of tracks that need to be validated according to the svz metric #567

Conversation

randy-seng
Copy link
Member

OP#6491

Updated the quantile calculation to use the "higher" interpolation method for more accurate results in the percentile computation. This change ensures that the computed percentile values are consistently derived from the higher range of the data set.
Introduce unit tests for three calculation strategies: DetectionRateByPercentile, DetectionRateByMaxConfidence, and DetectionRateByLength. Validate their accuracy using fixtures and expected results for different track datasets.
Renamed fixtures with 'given_' prefix to clarify their role as setup data providers. Added validation to ensure the `detection_rate_strategy` uses the correct DataFrame by implementing the `assert_strategy_called_with_tracks_assigned_to_flows` method. This enhances test reliability and readability.
Introduced the `TracksAsDataFrameProvider` class to encapsulate track data provisioning logic. Updated the SVZ number of tracks calculation code and related tests to use the new provider. This change improves modularity and separation of concerns in the data handling process.
Added new labels to display the number of tracks to be validated in the track statistics frame. Updated the widget placement and the label text configuration to reflect the track count dynamically.
…at-need-to-be-validated-according-to-the-svz-metric
@randy-seng randy-seng requested review from briemla and removed request for briemla November 21, 2024 15:14
Replaced hardcoded 'manual_classification' with a constant MANUAL_CLASSIFICATION. This enhances code readability and maintainability by avoiding magic strings.
Centralize the SVZ_RATE constant and update its usage across the codebase to improve code readability and maintainability. This ensures consistency and simplifies future updates related to the SVZ rate.
Previously hardcoded percentile value is now defined as a constant. This improves maintainability by centralizing the value, making changes easier in the future.
Ensure that the tracks provider's provide method is called exactly once in the test_number_of_tracks_to_be_validated case. This change enhances the test coverage by verifying interactions with the tracks provider mock.
Updated the track fixture name from `track_one_false_detection_class` to `track_two_false_detection_classes` across multiple test files for clarity and better alignment with the dataset content. This modification enhances code readability and accuracy regarding the track classifications used in the tests.
Replaced "Gruppe A3" with "svz-rate" to standardize the naming convention. This change enhances readability and consistency across the codebase.
@randy-seng randy-seng requested a review from briemla November 22, 2024 08:52
@briemla briemla requested review from briemla and removed request for briemla November 22, 2024 09:04
@briemla briemla enabled auto-merge November 22, 2024 09:04
@briemla briemla merged commit cc41f7c into main Nov 22, 2024
6 checks passed
@briemla briemla deleted the feature/6491-display-the-number-of-tracks-that-need-to-be-validated-according-to-the-svz-metric branch November 22, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants