048e800fb0ee920613e03a3b201c57ac140d56ec,Orange/widgets/classify/owclassificationtreegraph.py,OWClassificationTreeGraph,updateNodeInfo,#OWClassificationTreeGraph#Any#Any#,336
Before Change
// lines += [start + "<font color=%s>%s</font>" % (self.scene.colorPalette[node.tree.examples.domain.classVar.values.index(node.majorityClass)].name(), fix(node.majorityClass))]
// lines += [start + fix(node.majorityClass)]
if flags & 2:
start = "Majority class probability: " if self.showNodeInfoText else ""
// lines += [start + "%.1f" % (100.0 * float(node.majorityCount) / node.tree.distribution.abs)]
if flags & 4:
start = "Target class probability: " if self.showNodeInfoText else ""
After Change
lines.append(str(node.num_instances()))
text = "<br>".join(lines)
text += "<hr>"
if node.is_leaf():
text += self.domain.class_vars[0].values[node.majority()]
else:
text += self.domain.attributes[node.attribute()].name
node.setHtml(text)
def activateLoadedSettings(self):
if not self.tree:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: biolab/orange3
Commit Name: 048e800fb0ee920613e03a3b201c57ac140d56ec
Time: 2014-12-05
Author: martin.strazar@gmail.com
File Name: Orange/widgets/classify/owclassificationtreegraph.py
Class Name: OWClassificationTreeGraph
Method Name: updateNodeInfo
Project Name: biolab/orange3
Commit Name: b0b5129489369a88e730c1ff349f80e58a220b52
Time: 2014-12-05
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/classify/owclassificationtreegraph.py
Class Name: ClassificationTreeNode
Method Name: paint
Project Name: graphbrain/graphbrain
Commit Name: 2dd592e4197d2272d214e945ec19201eac78a9e9
Time: 2016-10-21
Author: telmo@telmomenezes.net
File Name: gb/knowledge/semantic_tree.py
Class Name: Node
Method Name: append_to_root