0685dcd247e1c9b696c0d865f0851f68d1f7b66c,src/skmultiflow/classification/trees/hoeffding_tree.py,HoeffdingTree,predict_proba,#HoeffdingTree#Any#,1063
Before Change
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])
else:
y_proba.append(0)
predictions.append(y_proba)
return predictions
@property
After Change
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)
return predictions
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: stanfordnmbl/osim-rl
Commit Name: 31eaece517abec1732300ec958e09f1758976fd4
Time: 2017-11-05
Author: spmohanty91@gmail.com
File Name: osim/redis/service.py
Class Name:
Method Name: