// if no classifier was selected, use the whole pool
if len(indices) == 0:
indices = list(range(self.n_classifiers))
return indices
def estimate_competence(self, query, predictions=None):
After Change
Boolean matrix containing True if the base classifier is select, False otherwise
if competences.ndim < 2:
competences = competences.reshape(1, -1)
selected_classifiers = (competences > self.selection_threshold)
// For the rows that are all False (i.e., no base classifier was selected, select all classifiers (all True)
selected_classifiers[~np.any(selected_classifiers, axis=1), :] = True