Ignore:
Timestamp:
01/25/12 21:00:31 (2 years ago)
Author:
markotoplak
Branch:
default
Message:

Tree: format -> to_string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/tree2.py

    r9372 r9567  
    1111print "BIG TREE:" 
    1212tree1 = Orange.classification.tree.TreeLearner(data) 
    13 print tree1.format(leaf_str="%m", node_str=".") 
     13print tree1.to_string(leaf_str="%m", node_str=".") 
    1414 
    1515print "\nPRE-PRUNED TREE:" 
    1616tree2 = Orange.classification.tree.TreeLearner(data, max_majority=0.7) 
    17 print tree2.format(leaf_str="%m", node_str=".") 
     17print tree2.to_string(leaf_str="%m", node_str=".") 
    1818 
Note: See TracChangeset for help on using the changeset viewer.