d as lists. After that, compute list of groups that will help in keeping together predictions about the same query. Finally, for each group compute the ``_metric`` if the number of positive targets is at least 1, otherwise behave as specified by ``self.empty_target_action``. r