0685dcd247e1c9b696c0d865f0851f68d1f7b66c,src/skmultiflow/classification/trees/hoeffding_tree.py,HoeffdingTree,predict_proba,#HoeffdingTree#Any#,1063

Before Change


                // Tree is empty, all target_values equal, default to zero
                predictions.append([0])
            else:
                normalize_values_in_dict(votes)
                y_proba = []
                for j in range(1 + int(max(votes.keys()))):
                    if j in votes.keys():
                        y_proba.append(votes[j])

After Change


                // Tree is empty, all target_values equal, default to zero
                predictions.append([0])
            else:
                if sum(votes.values()) != 0:
                    normalize_values_in_dict(votes)
                y_proba = [0] * (int(max(votes.keys())) + 1)
                for key, value in votes.items():
                    y_proba[int(key)] = value
                predictions.append(y_proba)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scikit-multiflow/scikit-multiflow
Commit Name: 0685dcd247e1c9b696c0d865f0851f68d1f7b66c
Time: 2018-06-18
Author: jacob.montiel@gmail.com
File Name: src/skmultiflow/classification/trees/hoeffding_tree.py
Class Name: HoeffdingTree
Method Name: predict_proba


Project Name: scikit-multiflow/scikit-multiflow
Commit Name: 7301f860743d7b45cd1d885094bf753629b535e8
Time: 2018-06-14
Author: jacob.montiel@gmail.com
File Name: src/skmultiflow/classification/trees/hoeffding_tree.py
Class Name: HoeffdingTree
Method Name: predict_proba


Project Name: scikit-multiflow/scikit-multiflow
Commit Name: fe1f194936660ab9fbb8dfdd68527b3593e57517
Time: 2018-06-05
Author: bader.d24@gmail.com
File Name: src/skmultiflow/classification/trees/hoeffding_tree.py
Class Name: HoeffdingTree
Method Name: predict_proba