Skip to content

Commit 596a452

Browse files
Pythagorean tree: Change text in target class with regression, make forest name camel case
1 parent 3102f7f commit 596a452

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Orange/widgets/visualize/owpythagorastree.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,10 @@ def _tree_specific(self, method):
387387
# CLASSIFICATION TREE SPECIFIC METHODS
388388
def _classification_update_target_class_combo(self):
389389
self._clear_target_class_combo()
390+
list(filter(
391+
lambda x: isinstance(x, QtGui.QLabel),
392+
self.target_class_combo.parent().children()
393+
))[0].setText('Target class')
390394
self.target_class_combo.addItem('None')
391395
values = [c.title() for c in
392396
self.tree_adapter.domain.class_vars[0].values]
@@ -467,6 +471,10 @@ def _classification_get_tooltip(self, node):
467471
# REGRESSION TREE SPECIFIC METHODS
468472
def _regression_update_target_class_combo(self):
469473
self._clear_target_class_combo()
474+
list(filter(
475+
lambda x: isinstance(x, QtGui.QLabel),
476+
self.target_class_combo.parent().children()
477+
))[0].setText('Node color')
470478
self.target_class_combo.addItems(
471479
list(zip(*self.REGRESSION_COLOR_CALC))[0])
472480
self.target_class_combo.setCurrentIndex(self.target_class_index)

Orange/widgets/visualize/owpythagoreanforest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727
class OWPythagoreanForest(OWWidget):
28-
name = 'Pythagorean forest'
28+
name = 'Pythagorean Forest'
2929
description = 'Pythagorean forest for visualising random forests.'
3030
icon = 'icons/PythagoreanForest.svg'
3131

0 commit comments

Comments
 (0)