Ignore:
Timestamp:
02/28/11 13:12:47 (3 years ago)
Author:
markotoplak
Branch:
default
Convert:
f7c8320a54b9bfb6a744524bbea26b913f1df33c
Message:

Tree documentation update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/doc/Orange/rst/code/orngTree1.py

    r7522 r7713  
    1010for format in formats: 
    1111    print '\n\n*** FORMAT: "%s"\n' % format 
    12     Orange.classification.tree.printTree(tree, leafStr=format) 
     12    print tree.dump(leafStr=format) 
    1313 
    1414formats2 = [("%V", "."), ('%^.1CbA="Iris-virginica"% (%^.1CbP="Iris-virginica"%)', '.'), ("%V   %D %.2DbP %.2dbP", "%D %.2DbP %.2dbP")] 
    1515for fl, fn in formats2: 
    16     Orange.classification.tree.printTree(tree, leafStr=fl, nodeStr=fn) 
     16    print tree.dump(leafStr=fl, nodeStr=fn) 
    1717 
    1818 
     
    2222for format in formats: 
    2323    print '\n\n*** FORMAT: "%s"\n' % format 
    24     Orange.classification.tree.printTree(tree, leafStr=format) 
     24    print tree.dump(leafStr=format) 
    2525 
    2626formats2 = [("[SE: %E]\t %V %I(90)", "[SE: %E]"), ("%C<22 (%cbP<22)", "."), ("%C![20,22] (%^cbP![20,22]%)", ".")] 
    2727for fl, fn in formats2: 
    28     Orange.classification.tree.printTree(tree, leafStr=fl, nodeStr=fn) 
     28    print tree.dump(leafStr=fl, nodeStr=fn) 
Note: See TracChangeset for help on using the changeset viewer.