ff94d81ea1807d7e091818cb11ac28b76be92a8e,src/skmultiflow/trees/hoeffding_tree.py,HoeffdingTree,predict,#HoeffdingTree#Any#,1037

Before Change


        predictions = []
        y_proba = self.predict_proba(X)
        for i in range(r):
            index = y_proba[i].index(max(y_proba[i]))
            predictions.append(index)
        return predictions

    def predict_proba(self, X):

After Change


        for i in range(r):
            index = np.argmax(y_proba[i])
            predictions.append(index)
        return np.array(predictions)

    def predict_proba(self, X):
        Predicts probabilities of all label of the X instance(s)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scikit-multiflow/scikit-multiflow
Commit Name: ff94d81ea1807d7e091818cb11ac28b76be92a8e
Time: 2018-07-20
Author: jacob.montiel@gmail.com
File Name: src/skmultiflow/trees/hoeffding_tree.py
Class Name: HoeffdingTree
Method Name: predict


Project Name: scikit-multiflow/scikit-multiflow
Commit Name: ff94d81ea1807d7e091818cb11ac28b76be92a8e
Time: 2018-07-20
Author: jacob.montiel@gmail.com
File Name: src/skmultiflow/trees/lc_hoeffding_tree.py
Class Name: LCHT
Method Name: predict


Project Name: nicodv/kmodes
Commit Name: cba9fe8ea6f0d2dd1997d8b61a01efb02c00c8da
Time: 2017-03-29
Author: nico.devos@autogrid.com
File Name: kmodes/util/__init__.py
Class Name:
Method Name: get_max_value_key