903a07680daf69de324bc69adff6b80fd63be309,Orange/classification/dummies.py,DummyMulticlassPredictor,predict,#DummyMulticlassPredictor#Any#,30

Before Change


        self.values = values

    def predict(self, X):
        return np.tile(self.values, (len(X),1))

After Change



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

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: biolab/orange3
Commit Name: 903a07680daf69de324bc69adff6b80fd63be309
Time: 2012-11-20
Author: devnull@localhost
File Name: Orange/classification/dummies.py
Class Name: DummyMulticlassPredictor
Method Name: predict


Project Name: biolab/orange3
Commit Name: 903a07680daf69de324bc69adff6b80fd63be309
Time: 2012-11-20
Author: devnull@localhost
File Name: Orange/classification/dummies.py
Class Name: DummyPredictor
Method Name: predict


Project Name: pysb/pysb
Commit Name: 47374cd825213029b578e5a22ba9836c0f55d97a
Time: 2015-07-03
Author: oo.ortega2247@gmail.com
File Name: pysb/tools/pysb_pyurdme.py
Class Name: PyurdmeSimulator
Method Name: run