Describe the bug
I tried to setup an active learning environment, where the interface always suggests the labeling task on which the model is most uncertain. To do so, I connected an ML backend and ran label-studio with "sampling": "prediction-score-min". Now I cannot label anything
To Reproduce
Steps to reproduce the behavior:
"sampling": "prediction-score-min"Expected behavior
I would expected to be presented with labeling tasks, in increasing order of model prediction score.
Screenshots


@andreaferretti are you sure that tasks have predictions?
They don't. Shouldn't predictions be created on the fly? When I choose sequential method, whenever I open a new labeling task, I see a prediction - I assume that the frontend queries the model on the fly.
What should I do to ensure that the ML backend is called on the existing tasks, so that labeling tasks show up here?
By the way, if there are no predictions, it would be better to show some labeling task at random, instead of nothing
@andreaferretti when you are using prediction-score-min mode for sampling, it expects that every task in a dataset has a prediction, then selecting the task with minimal prediction score. Connected ML backend provides only prediction for the currently selected task. You can still create predictions for the entire dataset using your ML backend by:
"enable_predictions_button": true in project/config.jsonThen, after all predictions are completed, the prediction-score-min sampling method should work as expected.
But your suggestion about sampling fallback is definitely reasonable, we'll include it in a future version
Thank you, now it is more clear
@andreaferretti can we close this issue? or you have more questions?
It is ok to close, thanks
Most helpful comment
@andreaferretti when you are using
prediction-score-minmode for sampling, it expects that every task in a dataset has a prediction, then selecting the task with minimal prediction score. Connected ML backend provides only prediction for the currently selected task. You can still create predictions for the entire dataset using your ML backend by:"enable_predictions_button": truein project/config.jsonThen, after all predictions are completed, the
prediction-score-minsampling method should work as expected.But your suggestion about sampling fallback is definitely reasonable, we'll include it in a future version