56798201b77d1546bec413b57e3561c5f13f5122,src/skmultiflow/meta/adaptive_random_forest_regressor.py,AdaptiveRandomForestRegressor,predict,#AdaptiveRandomForestRegressor#Any#,230

Before Change


            self.init_ensemble(X)
        for learner in self.ensemble:
            predictions += learner.predict(X)
        predictions /= self.n_estimators
        return predictions

    def predict_proba(self, X):
        Not implemented for this method.
        raise NotImplementedError

After Change


        if self.aggregation_method == self._MEAN:
            return np.mean(predictions, axis=0)
        elif self.aggregation_method == self._MEDIAN:
            return np.median(predictions, axis=0)
        else:
            np.zeros(get_dimensions(X)[0])

    def predict_proba(self, X):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scikit-multiflow/scikit-multiflow
Commit Name: 56798201b77d1546bec413b57e3561c5f13f5122
Time: 2020-04-16
Author: saulomastelini@gmail.com
File Name: src/skmultiflow/meta/adaptive_random_forest_regressor.py
Class Name: AdaptiveRandomForestRegressor
Method Name: predict


Project Name: pavlin-policar/openTSNE
Commit Name: 46379cefade313fee9fa99c8a6ebb62668918f82
Time: 2018-10-28
Author: pavlin.g.p@gmail.com
File Name: fastTSNE/tsne.py
Class Name: TSNEEmbedding
Method Name: generate_partial_coordinates


Project Name: etal/cnvkit
Commit Name: 96949e1a264e58eddfb26368b9e8e6c486b86d7d
Time: 2016-12-31
Author: eric.talevich@gmail.com
File Name: scripts/coverage_bin_size.py
Class Name:
Method Name: sample_region_cov