f1292b23b2c7685c54c98485ca5346273554faa1,deslib/base.py,DS,_frienemy_pruning,#DS#,390

Before Change


            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]]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scikit-learn-contrib/DESlib
Commit Name: f1292b23b2c7685c54c98485ca5346273554faa1
Time: 2018-03-26
Author: rafaelmenelau@gmail.com
File Name: deslib/base.py
Class Name: DS
Method Name: _frienemy_pruning


Project Name: Calamari-OCR/calamari
Commit Name: 8d0d0c7a6db3904f0222cbe058388a92cf21a548
Time: 2021-02-06
Author: ChWick@users.noreply.github.com
File Name: calamari_ocr/ocr/dataset/imageprocessors/center_normalizer.py
Class Name: CenterNormalizer
Method Name: dewarp


Project Name: eriklindernoren/Keras-GAN
Commit Name: 5c18953a3da18402d3fcc9ff96d1e983d48c98cb
Time: 2018-04-16
Author: eriklindernoren@gmail.com
File Name: pix2pix/pix2pix.py
Class Name: Pix2Pix
Method Name: train