706a4e840607d50dc94249150366a23ba720a900,mushroom/approximators/ensemble.py,Ensemble,predict,#Ensemble#Any#,41

Before Change


            The predictions of the model.

        
        y = list()
        for m in self.models:
            y.append(m.predict(x))
        y = np.mean(y, axis=0)

After Change



        
        y_0 = self.models[0].predict(x)
        y = np.zeros((self.n_models,) + y_0.shape)
        y[0] = y_0
        for i, m in enumerate(self.models[1:]):
            y[i + 1] = m.predict(x)
        y = np.mean(y, axis=0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 706a4e840607d50dc94249150366a23ba720a900
Time: 2017-09-06
Author: carlo.deramo@gmail.com
File Name: mushroom/approximators/ensemble.py
Class Name: Ensemble
Method Name: predict


Project Name: kundajelab/dragonn
Commit Name: 9c158b87f5fb2dca1ed95884e667ab2fc218e1b7
Time: 2017-05-01
Author: jisraeli@stanford.edu
File Name: dragonn/models.py
Class Name: SequenceDNN
Method Name: deeplift


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 706a4e840607d50dc94249150366a23ba720a900
Time: 2017-09-06
Author: carlo.deramo@gmail.com
File Name: mushroom/approximators/ensemble.py
Class Name: Ensemble
Method Name: predict_all