4c0886a54de59beaa405ab03d43f278ff171ec22,Orange/classification/dummies.py,DummyPredictor,predict,#DummyPredictor#Any#,19

Before Change



    def predict(self, X):
        rows = X.shape[0]
        return np.tile(self.value, rows), np.tile(self.prob, (rows, 1))


class DummyMulticlassLearner(classification.Fitter):

After Change



    def predict(self, X):
        rows = X.shape[0]
        value = np.tile(self.value, rows)
        probs = np.tile(self.prob, (rows, 1))
        if self.ret == classification.Model.Value:
            return value
        elif self.ret == classification.Model.Value:
            return probs
        else:
            return value, probs


class DummyMulticlassLearner(classification.Fitter):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: biolab/orange3
Commit Name: 4c0886a54de59beaa405ab03d43f278ff171ec22
Time: 2013-06-05
Author: tomaz.hocevar@fri.uni-lj.si
File Name: Orange/classification/dummies.py
Class Name: DummyPredictor
Method Name: predict


Project Name: biolab/orange3
Commit Name: 4c0886a54de59beaa405ab03d43f278ff171ec22
Time: 2013-06-05
Author: tomaz.hocevar@fri.uni-lj.si
File Name: Orange/classification/dummies.py
Class Name: DummyMulticlassPredictor
Method Name: predict


Project Name: biolab/orange3
Commit Name: 64ad9b753f6602a418120b3bf979d2d7257287af
Time: 2012-11-12
Author: devnull@localhost
File Name: Orange/classification/majority.py
Class Name: ConstantClassifier
Method Name: predict