-
Notifications
You must be signed in to change notification settings - Fork 131
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
Introduce additional active learning sampling strategies #148
Merged
PawelPeczek-Roboflow
merged 15 commits into
main
from
feature/introduce_additional_active_learning_sampling_strategies
Nov 3, 2023
Merged
Introduce additional active learning sampling strategies #148
PawelPeczek-Roboflow
merged 15 commits into
main
from
feature/introduce_additional_active_learning_sampling_strategies
Nov 3, 2023
Conversation
This file contains 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
paulguerrie
approved these changes
Nov 3, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! This is going to be really powerful for users!!
PawelPeczek-Roboflow
deleted the
feature/introduce_additional_active_learning_sampling_strategies
branch
November 3, 2023 15:42
PawelPeczek-Roboflow
restored the
feature/introduce_additional_active_learning_sampling_strategies
branch
November 3, 2023 15:46
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.
Description
On top of previously added Active Learning capabilities, we are adding 3 new sampling strategies for Active Learning:
Close to threshold sampling
Description
Sampling method to be used when one wants to sample datapoints causing certain predictions confidences for certain classes. Works for both detection and classification models - although the behaviour slightly differ.
Degrees of freedom in configuration
selected_class_names
- class names to be taken into consideration while sampling - optional (if not given - all classes can be sampled)threshold
andepsilon
- represent centre and radius for confidence range that can trigger sampling - for instance - if one is interested to get datapoints that classifier is highly confident (0.8, 1.0) ->threshold=0.9, epsilon=0.1
- this is however limited to the outcomes of model post-processing (and threshold filtering)probability
- fraction of datapoints that matches sampling criterions that will be persistedminimum_objects_close_to_threshold
- (for detection predictions only) - specify how many detected objects from selected classes must be close to threshold to accept datapointonly_top_classes
- (for classification predictions only) - flag to decide if onlytop
, orpredicted_classes
(for multi-class / multi-label cases respectively) classes should be taken into consideration (to avoid sampling based on non-leading classes in predictions)Example configuration
Classes based sampling (for classification)
Description
Sampling method to be used when one wants to sample specific classes from classifier predictions
Degrees of freedom in configuration
selected_class_names
- class names to be taken into consideration while sampling - requiredprobability
- fraction of datapoints that matches sampling criterions that will be persistedExample configuration
Detection number based sampling (for detection)
Description
Sampling method to be used when one wants to sample specific detections (based on count and classes)
Degrees of freedom in configuration
selected_class_names
- class names to be taken into consideration while sampling - optional (if not given - all classes can be sampled)probability
- fraction of datapoints that matches sampling criterions that will be persistedmore_than
- minimal number of detected objects (optional - if not given - lower limit is not applied)less_than
- maximum number of detected objects (optional - if not given - upper limit is not applied)more_than
,less_than
must be givenExample configuration
Type of change
Please delete options that are not relevant.
How has this change been tested, please provide a testcase or example of how you tested the change?
Any specific deployment considerations
For example, documentation changes, usability, usage/costs, secrets, etc.
Docs