7704337b2f1ef68952848b1e622e62497e0fe0b8,pythonds/base.py,DS,predict_proba_ensemble,#DS#Any#Any#Any#,375

Before Change


        // if indices is empty (no classifier is selected, use all of them)
        if len(indices) == 0:
            indices = list(range(self.n_classifiers))
            weights = np.ones(self.n_classifiers)/self.n_classifiers

        proba = np.zeros(self.n_classes)

        for idx in indices:

After Change


        
        ensemble_size = len(indices)
        if weights is not None:
            if weights.size != ensemble_size:
                raise ValueError("The size of the weights vector should be equals to the size of the ensemble!")

        // if indices is empty (no classifier is selected, use all of them)
        if ensemble_size == 0:
            indices = list(range(self.n_classifiers))

        proba = np.zeros((1, self.n_classes))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: scikit-learn-contrib/DESlib
Commit Name: 7704337b2f1ef68952848b1e622e62497e0fe0b8
Time: 2017-12-27
Author: rafaelmenelau@gmail.com
File Name: pythonds/base.py
Class Name: DS
Method Name: predict_proba_ensemble


Project Name: sentinel-hub/eo-learn
Commit Name: 059eb126d50aaebb41433961d02bf5e360a9885e
Time: 2019-05-27
Author: matej.aleksandrov@sinergise.com
File Name: geometry/eolearn/geometry/transformations.py
Class Name: VectorToRaster
Method Name: execute


Project Name: sentinel-hub/eo-learn
Commit Name: 60b6d7a3777d1e0c4b17bc954823951aac857fab
Time: 2018-06-12
Author: devis.peressutti@sinergise.com
File Name: io/eolearn/io/sh_add.py
Class Name: AddGeopediaFeature
Method Name: execute