b53c7e1fc510eaa3154c933e549de1580425a144,autosklearn/ensembles/ensemble_selection.py,EnsembleSelection,predict,#EnsembleSelection#Any#,211

Before Change


        return np.array(order_of_each_bag)

    def predict(self, predictions):
        non_null_weights = (weight for  weight in self.weights_ if weight > 0)
        for i, weight in enumerate(non_null_weights):
            predictions[i] *= weight
        return np.sum(predictions, axis=0)

After Change


        return np.array(order_of_each_bag)

    def predict(self, predictions):
        predictions = np.asarray(predictions)

        // if predictions.shape[0] == len(self.weights_),
        // predictions include those of zero-weight models.
        if predictions.shape[0] == len(self.weights_):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: automl/auto-sklearn
Commit Name: b53c7e1fc510eaa3154c933e549de1580425a144
Time: 2018-12-06
Author: 31531627+ahn1340@users.noreply.github.com
File Name: autosklearn/ensembles/ensemble_selection.py
Class Name: EnsembleSelection
Method Name: predict


Project Name: idaholab/raven
Commit Name: 09e47cabaf09c32d402e8527d3804bac5f118ccf
Time: 2018-09-04
Author: congjian.wang@inl.gov
File Name: framework/PostProcessors/Metric.py
Class Name: Metric
Method Name: _handleInput


Project Name: biolab/orange3
Commit Name: fba0fc9d72e984e73c8ed0de1e57bc37bbe8f676
Time: 2018-03-23
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/statistics/util.py
Class Name:
Method Name: _count_nans_per_row_sparse