176c06fc99fbc2bd8c53ea6cdb3c50424424b049,pythonds/des/knop.py,KNOP,classify_instance,#KNOP#Any#,157

Before Change


        The predicted label of the query
        
        votes = self.select(query)
        counter = collections.Counter(votes)
        predicted_label = counter.most_common()[0][0]

        return predicted_label

After Change


        predicted_label : Prediction of the ensemble for the input query.
        
        votes = self.select(query)
        predicted_label = mode(votes)[0]

        return predicted_label
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scikit-learn-contrib/DESlib
Commit Name: 176c06fc99fbc2bd8c53ea6cdb3c50424424b049
Time: 2018-01-01
Author: rafaelmenelau@gmail.com
File Name: pythonds/des/knop.py
Class Name: KNOP
Method Name: classify_instance


Project Name: scikit-learn-contrib/DESlib
Commit Name: 176c06fc99fbc2bd8c53ea6cdb3c50424424b049
Time: 2018-01-01
Author: rafaelmenelau@gmail.com
File Name: pythonds/des/knora_u.py
Class Name: KNORAU
Method Name: classify_instance


Project Name: scikit-learn-contrib/DESlib
Commit Name: 61aff20b59879b64ad562c2faa5f85ad0ee75592
Time: 2018-01-13
Author: rafaelmenelau@gmail.com
File Name: pythonds/base.py
Class Name: DS
Method Name: _hardness_region_competence