346658e4ff4ee62a7a8275693c4dc0a6008d970e,Orange/widgets/visualize/owtreeviewer.py,OWTreeGraph,update_node_info_cls,#OWTreeGraph#Any#,344

Before Change


        Update the printed contents of the node for classification trees
        node_inst = node.node_inst
        distr = node_inst.value
        total = len(node_inst.subset)
        distr = distr / np.sum(distr)
        if self.target_class_index:
            tabs = distr[self.target_class_index - 1]
            text = ""

After Change


        Update the printed contents of the node for classification trees
        node_inst = node.node_inst
        distr = self.tree_adapter.get_distribution(node_inst)[0]
        total = len(self.tree_adapter.get_instances_in_nodes(self.dataset, [node_inst]))
        distr = distr / np.sum(distr)
        if self.target_class_index:
            tabs = distr[self.target_class_index - 1]
            text = ""
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: biolab/orange3
Commit Name: 346658e4ff4ee62a7a8275693c4dc0a6008d970e
Time: 2017-01-10
Author: pavlin.g.p@gmail.com
File Name: Orange/widgets/visualize/owtreeviewer.py
Class Name: OWTreeGraph
Method Name: update_node_info_cls


Project Name: biolab/orange3
Commit Name: 9f2a852840c0e5e94fd99155c2a0b938ff41e18d
Time: 2017-01-10
Author: pavlin.g.p@gmail.com
File Name: Orange/widgets/visualize/owtreeviewer.py
Class Name: OWTreeGraph
Method Name: toggle_node_color_reg


Project Name: biolab/orange3
Commit Name: 9f2a852840c0e5e94fd99155c2a0b938ff41e18d
Time: 2017-01-10
Author: pavlin.g.p@gmail.com
File Name: Orange/widgets/visualize/owtreeviewer.py
Class Name: OWTreeGraph
Method Name: update_node_info_reg