86c29b91c8581146079d9615982f588f197678e7,Orange/widgets/classify/owclassificationtreegraph.py,TreeNode,rulew,#TreeNode#Any#,302
Before Change
attr_name = parent_attr.name
sign = [">", "<="][is_left_child]
value = "%.3f" % self.tree.threshold[self.parent.i]
pr.append((attr_name, sign, value))
return pr
else:
return []
After Change
value = "%.3f" % self.tree.threshold[self.parent.i]
if (attr_name, sign) in pr:
old_val = pr[(attr_name, sign)]
if sign == ">":
pr[(attr_name, sign)] = max(float(value), float(old_val))
elif sign == "≠":
pr[(attr_name, sign)] = "{}, {}".format(old_val, value)
elif sign == "<=":
pr[(attr_name, sign)] = min(float(value), float(old_val))
else:
pr[(attr_name, sign)] = value
return pr
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: biolab/orange3
Commit Name: 86c29b91c8581146079d9615982f588f197678e7
Time: 2016-03-18
Author: tankovesna@hotmail.com
File Name: Orange/widgets/classify/owclassificationtreegraph.py
Class Name: TreeNode
Method Name: rulew
Project Name: prody/ProDy
Commit Name: f13480abc1f0ac3e1dc9611b6ddd1240ceb61bec
Time: 2018-09-26
Author: jamesmkrieger@gmail.com
File Name: prody/proteins/starfile.py
Class Name:
Method Name: parseImagesFromSTAR
Project Name: facebookresearch/ParlAI
Commit Name: e1017f2286cda84d17063cdeb100089e0454c02d
Time: 2018-04-10
Author: edinan@fb.com
File Name: projects/convai2/baselines/language_model/language_model_ppl.py
Class Name: PerplexityWorld
Method Name: parley