cd1a5446ce793d09f28d021c466a279301eb51f0,deslib/des/meta_des.py,METADES,select,#METADES#,294

Before Change



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

Frequency: 4

Non-data size: 6

Instances


Project Name: scikit-learn-contrib/DESlib
Commit Name: cd1a5446ce793d09f28d021c466a279301eb51f0
Time: 2018-04-01
Author: rafaelmenelau@gmail.com
File Name: deslib/des/meta_des.py
Class Name: METADES
Method Name: select


Project Name: PIQuIL/QuCumber
Commit Name: a3645eada1fd6b0dc2f262033a93b81a6ca84b55
Time: 2019-12-23
Author: emerali@users.noreply.github.com
File Name: qucumber/utils/unitaries.py
Class Name:
Method Name: _rotate_basis_state


Project Name: akkana/scripts
Commit Name: 882dcc17604b6eedafbef73b298c2158ea2a68c1
Time: 2017-02-02
Author: akkana@shallowsky.com
File Name: conjunctions.py
Class Name:
Method Name: run


Project Name: fgnt/pb_bss
Commit Name: 2cfa9aa576ae7544f76e66854edd304690a5822b
Time: 2019-08-08
Author: mail@lukas-drude.de
File Name: paderbox/speech_enhancement/beamformer_wrapper.py
Class Name:
Method Name: get_multi_source_bf_vector_from_masks