6496c605ad12f3eaac3939804ee8bef0b82a2692,src/skmultiflow/bayes/naive_bayes.py,NaiveBayes,partial_fit,#NaiveBayes#Any#Any#Any#Any#,47

Before Change


            self

        
        self.classifier.partial_fit(X, y, classes)
        return self

    def predict(self, X):
         predict

After Change


            if row_cnt != len(weight):
                raise ValueError("Inconsistent number of instances ({}) and weights ({}).".format(row_cnt, len(weight)))
            for i in range(row_cnt):
                if weight[i] != 0.0:
                    self._partial_fit(X[i], y[i], weight[i])
        return self

    def _partial_fit(self, X, y, weight):
        try:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scikit-multiflow/scikit-multiflow
Commit Name: 6496c605ad12f3eaac3939804ee8bef0b82a2692
Time: 2019-02-27
Author: aquancva@gmail.com
File Name: src/skmultiflow/bayes/naive_bayes.py
Class Name: NaiveBayes
Method Name: partial_fit


Project Name: scikit-multiflow/scikit-multiflow
Commit Name: 5bf139b5a4312e6bfbe6a196e68fb261ef674368
Time: 2019-02-25
Author: jacob.montiel@gmail.com
File Name: src/skmultiflow/bayes/naive_bayes.py
Class Name: NaiveBayes
Method Name: partial_fit


Project Name: theislab/scanpy
Commit Name: 7da447b4b42c4b214fc464deb3a3166a9bace7b2
Time: 2017-05-22
Author: f.alex.wolf@gmx.de
File Name: scanpy/preprocessing/simple.py
Class Name:
Method Name: scale