ec396411be11d514a44a18813278f3a41c73ac5f,deslib/des/des_knn.py,DESKNN,__init__,#DESKNN#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,70

Before Change


        super(DESKNN, self).__init__(pool_classifiers, k, DFP=DFP, with_IH=with_IH, safe_k=safe_k, IH_rate=IH_rate)

        self.name = "Dynamic Ensemble Selection-KNN (DES-KNN)"
        self.N = int(self.n_classifiers * pct_accuracy)
        self.J = int(np.ceil(self.n_classifiers * pct_diversity))
        self.metric = metric

        self._validate_parameters()

After Change


        super(DESKNN, self).__init__(pool_classifiers, k, DFP=DFP, with_IH=with_IH, safe_k=safe_k,
                                     IH_rate=IH_rate, knn_classifier=knn_classifier)

        self.name = "Dynamic Ensemble Selection-KNN (DES-KNN)"
        self.N = int(self.n_classifiers * pct_accuracy)
        self.J = int(np.ceil(self.n_classifiers * pct_diversity))
        self.metric = metric

        self._validate_parameters()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scikit-learn-contrib/DESlib
Commit Name: ec396411be11d514a44a18813278f3a41c73ac5f
Time: 2018-09-23
Author: Natlem@users.noreply.github.com
File Name: deslib/des/des_knn.py
Class Name: DESKNN
Method Name: __init__


Project Name: senarvi/theanolm
Commit Name: a636431f9374bb9ae6e3a8107549bf20f91cdb1b
Time: 2016-11-20
Author: seppo.git@marjaniemi.com
File Name: theanolm/matrixfunctions.py
Class Name:
Method Name: test_value


Project Name: allenai/allennlp
Commit Name: 28028a0544632307fe48e66a15a4b2a22c3dddda
Time: 2020-02-14
Author: dirkg@allenai.org
File Name: allennlp/common/from_params.py
Class Name:
Method Name: construct_arg