Repository navigation
404 bug incorrect shape handling for annotators parameter in query function in singleannotatorwrapper - #408
Merged
Conversation
added 10 commits
June 13, 2024 20:47
…didate and annotators and normal candidate
…ndling-for-annotators-parameter-in-query-function-in-singleannotatorwrapper
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## development #408 +/- ##
=============================================
Coverage 100.00% 100.00%
=============================================
Files 58 58
Lines 5096 5096
=============================================
Hits 5096 5096 ☔ View full report in Codecov by Sentry. |
…ndling-for-annotators-parameter-in-query-function-in-singleannotatorwrapper
mherde
approved these changes
Jul 14, 2024
tpham93
approved these changes
Jul 15, 2024
This file contains hidden or 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
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.
Closes #404 #405
Also, the term candidates and annotators now have more precise definitions.
If both candidates and annotators are
Nonethe missing values determine the candidate annotator sample pairs.Otherwise, if not further specified by candidates and annotators, all candidates and annotators are considered as available in the sense that they can be queried, e.g. if candidates is
Noneand annotators is the integer array[0, 1], for every sample the annotator 0 and the annotator 1 can be queried.Thereby, there is no more unclear entanglement between y and candidates/annotators.
This is also more inline with the single annotator case, where once candidates are specified, the missing values no longer determine if a sample can be queried.
Further, the term
n_candidatesis defined to belen(y)if candidates is None and to belen(candidates)else.This slightly deviates from the definition of n_candidates in the single annotator case, where
n_candidates = sum(is_labeled(y))if candidates is None. However,n_candidatescan not meaningfully represent the number of available samples in the multi annotator setting anyway, as the examplecandidates=[[0.5, 1.0], [2.2, 0.5]], annotators=[[False, False], [True, False]]shows. Heren_candidates==2by definition of the documentation, but the first sample is not available, leaving one available sample. Thereby, the termn_candidateswas ambiguous in the multi annotator setting.The name
n_selectable_candiatatesis chosen in the documentation of_transform_cand_annotto be able to reduce the length ofX_candwhere appropriate.