(self, node)
Update the printed contents of the node for regression trees
Update the printed contents of the node for regression trees
Update the printed contents of the node for regression trees
def update_node_info_reg(self, node):
        """Update the printed contents of the node for regression trees"""
        node_inst = node.node_inst
        mean, var = self.tree_adapter.get_distribution(node_inst)[0]
        insts = self.tree_adapter.num_samples(node_inst)
        text = f"<b>{mean:.1f}</b> ± {var:.1f}<br/>"
        text += f"{insts} instances"
        text = self._update_node_info_attr_name(node, text)
        node.setHtml(
            f'<p style="line-height: 120%; margin-bottom: 0">{text}</p>')
def update_node_info_reg ( self , node ) : node_inst = node . node_inst mean , var = self . tree_adapter . get_distribution ( node_inst ) [ 0 ] insts = self . tree_adapter . num_samples ( node_inst ) text = f"<b>{mean:.1f}</b> ± {var:.1f}<br/>" text += f"{insts} instances" text = self . _update_node_info_attr_name ( node , text ) node . setHtml ( f'<p style="line-height: 120%; margin-bottom: 0">{text}</p>' )