You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: Incorrect shape handling for annotators parameter in query function in SingleAnnotatorWrapper #404
The annotators parameter, expected to be of shape (n_candidates, n_annotators), does not work correctly in the query function of class SingleAnnotatorWrapper.
Traceback (most recent call last):
File "/Users/chengjiaying/BachelorProjekt/Crowd_Layer/11_test.py", line 22, in<module>
query_indices = ma_qs.query(
File "/opt/anaconda3/envs/BachelorProjekt/lib/python3.10/site-packages/skactiveml/pool/multiannotator/_wrapper.py", line 187, in query
) = super()._validate_data(
File "/opt/anaconda3/envs/BachelorProjekt/lib/python3.10/site-packages/skactiveml/base.py", line 599, in _validate_data
check_consistent_length(X, annotators)
File "/opt/anaconda3/envs/BachelorProjekt/lib/python3.10/site-packages/sklearn/utils/validation.py", line 397, in check_consistent_length
raise ValueError(
ValueError: Found input variables with inconsistent numbers of samples: [200, 100]
changed the title [-]BUG: Incorrect shape handling for 'annotators' parameter in query function in SingleAnnotatorWrapper[/-][+]BUG: Incorrect shape handling for `annotators` parameter in query function in SingleAnnotatorWrapper[/+]on Jun 13, 2024
Activity
[-]BUG: Incorrect shape handling for 'annotators' parameter in query function in SingleAnnotatorWrapper[/-][+]BUG: Incorrect shape handling for `annotators` parameter in query function in SingleAnnotatorWrapper[/+]Cheng-JY commentedon Jun 18, 2024
Hello,
I resolved this problem by modifying the code in skactiveml/base.py at line 596 to:
This change ensures that the annotators parameter is handled correctly when its shape is `(n_candidates, n_annotators)