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/ensemble-forest.py

    r9823 r10633  
    88 
    99forest = Orange.ensemble.forest.RandomForestLearner(trees=50, name="forest") 
    10 tree = Orange.classification.tree.TreeLearner(minExamples=2, mForPrunning=2, \ 
    11                             sameMajorityPruning=True, name='tree') 
     10tree = Orange.classification.tree.TreeLearner(min_instances=2, m_pruning=2, \ 
     11                            same_majority_pruning=True, name='tree') 
    1212learners = [tree, forest] 
    1313 
     
    1818for i in range(len(learners)): 
    1919    print "%-8s %5.3f  %5.3f  %5.3f" % (learners[i].name, \ 
    20         Orange.evaluation.scoring.CA(results)[i],  
     20        Orange.evaluation.scoring.CA(results)[i], 
    2121        Orange.evaluation.scoring.Brier_score(results)[i], 
    2222        Orange.evaluation.scoring.AUC(results)[i]) 
Note: See TracChangeset for help on using the changeset viewer.