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 = ""