Skip to content

Commit

Permalink
Merge pull request #4269 from irgolic/bold-tree-viewer-target
Browse files Browse the repository at this point in the history
[ENH] OWTreeViewer: Bold predicted values in tree nodes
  • Loading branch information
janezd authored Dec 20, 2019
2 parents e3a3214 + 439a7a9 commit f0851e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Orange/widgets/visualize/owtreeviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def update_node_info_cls(self, node):
else:
modus = np.argmax(distr)
tabs = distr[modus]
text = f"{self.domain.class_vars[0].values[int(modus)]}<br/>"
text = f"<b>{self.domain.class_vars[0].values[int(modus)]}</b><br/>"
if tabs > 0.999:
text += f"100%, {total}/{total}"
else:
Expand All @@ -373,7 +373,7 @@ 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"{mean:.1f} ± {var:.1f}<br/>"
text = f"<b>{mean:.1f}</b> ± {var:.1f}<br/>"
text += f"{insts} instances"
text = self._update_node_info_attr_name(node, text)
node.setHtml(
Expand Down

0 comments on commit f0851e4

Please sign in to comment.