Ignore:
Timestamp:
11/07/12 12:20:47 (18 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Completely removed the tree to network code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Classify/OWClassificationTree.py

    r11012 r11015  
    3535        self.inputs = [("Data", ExampleTable, self.setData), 
    3636                       ("Preprocess", PreprocessedLearner, self.setPreprocessor)] 
    37          
     37 
    3838        self.outputs = [("Learner", Orange.classification.tree.TreeLearner), 
    3939                        ("Classification Tree", Orange.classification.tree.TreeClassifier), ] 
    40  
    41         try: 
    42             self.outputs.append(("Classification Tree Graph", Orange.network.Graph)) 
    43         except: 
    44             pass 
    4540 
    4641        self.name = 'Classification Tree' 
     
    150145            self.classifier = None 
    151146 
    152         tree_graph = None 
    153         if self.classifier is not None: 
    154             tree_graph = self.classifier.to_network() 
    155  
    156147        self.send("Classification Tree", self.classifier) 
    157  
    158         if "Classification Tree Graph" in self.outputs: 
    159             self.send("Classification Tree Graph", tree_graph) 
    160148 
    161149    def measureChanged(self): 
Note: See TracChangeset for help on using the changeset viewer.