Ignore:
Timestamp:
02/06/12 18:26:10 (2 years ago)
Author:
Miha Stajdohar <miha.stajdohar@…>
Branch:
default
rebase_source:
f7bd58ff2194a544a5271b7d9c6922311f9c4f8d
Message:

Renamed format to to_string.

File:
1 edited

Legend:

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

    r9372 r9800  
    2727            return Orange.classification.tree.insert_dot(strg, mo) 
    2828    return Orange.classification.tree.insert_num(strg, mo, margin) 
    29      
    30 my_format = [(re.compile("%"+Orange.classification.tree.fs 
    31     +"B"+Orange.classification.tree.by), replaceB)] 
    32              
    33 print tree.format(leaf_str="%V %^B% (%^3.2BbP%)", user_formats=my_format) 
     29 
     30my_format = [(re.compile("%" + Orange.classification.tree.fs 
     31    + "B" + Orange.classification.tree.by), replaceB)] 
     32 
     33print tree.to_string(leaf_str="%V %^B% (%^3.2BbP%)", user_formats=my_format) 
Note: See TracChangeset for help on using the changeset viewer.