ff5c7db82d429924fd88dfc9dd06935bfbb202cb,pythonds/des/base.py,DES,__init__,#DES#Any#Any#Any#Any#Any#Any#Any#Any#,45

Before Change


                 version="selection"):

        super(DES, self).__init__(pool_classifiers, k, DFP=DFP, with_IH=with_IH, safe_k=safe_k, IH_rate=IH_rate, aknn=aknn)
        version.lower()
        assert version in ["selection", "hybrid", "weighting"]
        self.version = version

    def estimate_competence(self, query):

After Change



        mode = mode.lower()

        if mode not in ["selection", "hybrid", "weighting"]:
            raise ValueError("Invalid value for parameter "version"")

        self.version = mode

    def estimate_competence(self, query):
        estimate the competence of each base classifier ci
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scikit-learn-contrib/DESlib
Commit Name: ff5c7db82d429924fd88dfc9dd06935bfbb202cb
Time: 2017-12-13
Author: luiz.gh@gmail.com
File Name: pythonds/des/base.py
Class Name: DES
Method Name: __init__


Project Name: OpenNMT/OpenNMT-tf
Commit Name: 563e828f64b404b97fb93f8cc28371b6b4882c1a
Time: 2018-03-07
Author: guillaumekln@users.noreply.github.com
File Name: opennmt/models/sequence_tagger.py
Class Name: SequenceTagger
Method Name: __init__


Project Name: mwickert/scikit-dsp-comm
Commit Name: c72b6d57938552e0e372173df7655264f6fa9088
Time: 2017-10-17
Author: chiranthsiddappa@gmail.com
File Name: sk_dsp_comm/sigsys.py
Class Name:
Method Name: lp_samp