Ignore:
Timestamp:
03/23/12 20:20:57 (2 years ago)
Author:
mstajdohar
Branch:
default
Message:

Changed obsolete names.

File:
1 edited

Legend:

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

    r9823 r10633  
    1919    print tree(i), i.getclass() 
    2020 
    21 print "\n\nC4.5 with minObjs=100" 
    22 tree = Orange.classification.tree.C45Learner(iris, minObjs=100) 
     21print "\n\nC4.5 with min_objs=100" 
     22tree = Orange.classification.tree.C45Learner(iris, min_objs=100) 
    2323for i in iris[:5]: 
    2424    print tree(i), i.getclass() 
     
    3737 
    3838 
    39 res = Orange.evaluation.testing.cross_validation([Orange.classification.tree.C45Learner(),  
     39res = Orange.evaluation.testing.cross_validation([Orange.classification.tree.C45Learner(), 
    4040    Orange.classification.tree.C45Learner(convertToOrange=1)], iris) 
    4141print "Classification accuracy: %5.3f (converted to tree: %5.3f)" % tuple(Orange.evaluation.scoring.CA(res)) 
Note: See TracChangeset for help on using the changeset viewer.