d37a7e779a4baed9331be757ce60e6537546d085,Orange/widgets/visualize/pythagorastreeviewer.py,ContinuousTreeNode,_color_mean,#ContinuousTreeNode#,704

Before Change


        max_mean = np.max(self.tree.instances.Y)
        instances = self.tree.get_instances_in_nodes(self.label)
        mean = np.mean(instances.Y)
        return self.color_palette[(mean - min_mean) / (max_mean - min_mean)]

    def _color_var(self):
        Color the nodes with respect to the variance of instances inside.
        min_std, max_std = 0, np.std(self.tree.instances.Y)

After Change



    def _color_mean(self):
        Color the nodes with respect to the mean of instances inside.
        min_mean = np.min(self.tree.instances.Y)
        max_mean = np.max(self.tree.instances.Y)
        instances = self.tree.get_instances_in_nodes(self.label)
        mean = np.mean(instances.Y)
        return self.color_palette.value_to_qcolor(
            mean, low=min_mean, high=max_mean)

    def _color_var(self):
        Color the nodes with respect to the variance of instances inside.
        min_std, max_std = 0, np.std(self.tree.instances.Y)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: biolab/orange3
Commit Name: d37a7e779a4baed9331be757ce60e6537546d085
Time: 2020-02-06
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/visualize/pythagorastreeviewer.py
Class Name: ContinuousTreeNode
Method Name: _color_mean


Project Name: biolab/orange3
Commit Name: d37a7e779a4baed9331be757ce60e6537546d085
Time: 2020-02-06
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/visualize/pythagorastreeviewer.py
Class Name: ContinuousTreeNode
Method Name: _color_mean


Project Name: biolab/orange3
Commit Name: 43a0e49eba55ba6880c402d9f99d707128e953dc
Time: 2020-02-06
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/visualize/owtreeviewer.py
Class Name: OWTreeGraph
Method Name: toggle_node_color_reg


Project Name: biolab/orange3
Commit Name: d37a7e779a4baed9331be757ce60e6537546d085
Time: 2020-02-06
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/visualize/pythagorastreeviewer.py
Class Name: ContinuousTreeNode
Method Name: _color_var