aefd8bcf146d6de8f19fc0c3c5873880bc82886f,mlxtend/sklearn/ensemble.py,EnsembleClassifier,fit,#EnsembleClassifier#Any#Any#,86

Before Change


            clf.fit(X, y)
        
        self.le.fit(y)
        self.classes_ = np.unique(y)
                
        return self
            
    def predict(self, X):

After Change


        self : object
        

        if isinstance(y, np.ndarray) and len(y.shape) > 1 and y.shape[1] > 1:
            raise NotImplementedError("Multilabel classification"
                                      " not implemented, yet.")

        if self.voting not in ("soft", "hard"):
            raise ValueError("Voting must be "soft" or "hard" got (voting=%r)"
                             % voting)

        if self.weights and len(self.weights) != len(self.clfs):
            raise ValueError("Number of classifiers and weights must be equal"
                             " got %d weights, %d clfs"
                             % (len(self.weights), len(self.clfs)))

        self.le_ = LabelEncoder()
        self.le_.fit(y)
        self.classes_ = self.le_.classes_

        for clf in self.clfs:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: rasbt/mlxtend
Commit Name: aefd8bcf146d6de8f19fc0c3c5873880bc82886f
Time: 2015-02-23
Author: se.raschka@me.com
File Name: mlxtend/sklearn/ensemble.py
Class Name: EnsembleClassifier
Method Name: fit


Project Name: automl/auto-sklearn
Commit Name: 9d0ed839dc9df4c9afc5966c1e3276c478a58d53
Time: 2020-09-16
Author: feurerm@informatik.uni-freiburg.de
File Name: scripts/update_metadata_util.py
Class Name:
Method Name: load_task


Project Name: nilearn/nilearn
Commit Name: b23499886f1a43087bc892d661574ec201331903
Time: 2017-02-13
Author: dkamalakarreddy@gmail.com
File Name: nilearn/regions/region_extractor.py
Class Name:
Method Name: connected_label_regions


Project Name: J535D165/recordlinkage
Commit Name: f0abbde5a393b8781919a2c33474757c07cfee8f
Time: 2016-01-02
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/indexing.py
Class Name:
Method Name: _sortedneighbourhood