Commits

Aleš Erjavec committed 4c78dc4

Added tree parameters to widgets 'settingsList'.

Comments (0)

Files changed (1)

_multitarget/widgets/OWMultiTargetTree.py

 
 
 class OWMultiTargetTree(OWWidget):
-    settingsList = ["name", "max_depth"]
+    settingsList = ["name", "binarization", "use_min_subset", "min_subset",
+                    "use_min_instances", "min_instances", "use_max_majority",
+                    "max_majority", "use_max_depth", "max_depth",
+                    "same_majority_pruning", "use_m_pruning", "m_pruning"]
 
     BINARIZATION = ["No binarization",
                     "Exhaustive search for optimal split",
         self.use_m_pruning = True
         self.m_pruning = 2
 
+        self.loadSettings()
+
         box = OWGUI.widgetBox(self.controlArea, "Classifier/Learner Name")
         OWGUI.lineEdit(box, self, "name")
 
     w.set_data(data)
     w.show()
     app.exec_()
+    w.saveSettings()