return mask
else:
// The sample is located in a safe region. All base classifiers can predict the label
mask = np.ones(self.n_classifiers)
return mask
def _get_classifier_ensemble(self, indices):
This function receive the indices of the selected classifiers and returns an ensemble with the selected
After Change
n_samples, n_neighbors = self.neighbors.shape
mask = np.zeros((n_samples, self.n_classifiers))
for sample_idx in enumerate(n_samples):
// Check if query is in a indecision region
neighbors_y = self.DSEL_target[self.neighbors[sample_idx, :self.safe_k]]