af0d98898e2be517096c18335ab10b43b9fd461e,mlxtend/classifier/perceptron.py,Perceptron,predict,#Perceptron#,83

Before Change


          Predicted class label.
        
        net_input = self.net_input(X)
        return np.where(net_input >= 0.0, 1, -1)

After Change


          Predicted class label.
          
        
        return np.where(self.net_input(X) >= self.thres_, self.classes_[1], self.classes_[0])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: rasbt/mlxtend
Commit Name: af0d98898e2be517096c18335ab10b43b9fd461e
Time: 2015-03-17
Author: se.raschka@me.com
File Name: mlxtend/classifier/perceptron.py
Class Name: Perceptron
Method Name: predict


Project Name: rasbt/mlxtend
Commit Name: af0d98898e2be517096c18335ab10b43b9fd461e
Time: 2015-03-17
Author: se.raschka@me.com
File Name: mlxtend/classifier/adaline.py
Class Name: Adaline
Method Name: predict


Project Name: pfnet-research/chainer-chemistry
Commit Name: 9220e2b2e1850a983be7cb0166ed358f1d782b5e
Time: 2019-09-17
Author: akita714@preferred.jp
File Name: chainer_chemistry/functions/activation/shifted_softplus.py
Class Name:
Method Name: shifted_softplus