Changeset 10649:0ad406d2d7d8 in orange


Ignore:
Timestamp:
03/27/12 10:00:26 (2 years ago)
Author:
anze <anze.staric@…>
Branch:
default
Children:
10650:1063faf36029, 10652:b794bb413dc2
Message:

Removed dump method (duplicate for to_string).

Location:
Orange
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Orange/classification/tree.py

    r10609 r10649  
    15961596 
    15971597 
    1598     def dump(self): 
     1598    def to_string(self): 
    15991599        """ 
    16001600        Print the tree in the same form as Ross Quinlan's  
     
    16431643        return  _c45_printTree0(self.tree, self.class_var, 0) 
    16441644 
    1645     to_string = dump 
    16461645 
    16471646def _c45_showBranch(node, classvar, lev, i): 
     
    26592658            max_depth, simple_first, self).dumpTree() 
    26602659 
    2661     dump = to_string 
    2662  
    26632660    @Orange.utils.deprecated_keywords({"fileName": "file_name", \ 
    26642661        "leafStr": "leaf_str", "nodeStr": "node_str", \ 
  • Orange/orng/orngTree.py

    r10467 r10649  
    3939 
    4040dumpTree = dump 
    41 """ DEPRECATED: Replaced by :obj:`TreeClassifier.dump`. """ 
     41""" DEPRECATED: Replaced by :obj:`TreeClassifier.to_string`. """ 
    4242 
    4343def printTree(*a, **aa): 
     
    4949 
    5050printTxt = printTree 
    51 """ DEPRECATED. Replaced by :obj:`TreeClassifier.dump` """ 
     51""" DEPRECATED. Replaced by :obj:`TreeClassifier.to_string` """ 
    5252 
    5353printDot = dot 
Note: See TracChangeset for help on using the changeset viewer.