Ignore:
Timestamp:
02/07/12 21:42:52 (2 years ago)
Author:
anze <anze.staric@…>
Branch:
default
Parents:
10002:496d655f5c82 (diff), 9999:3b8b4cc606c0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
rebase_source:
edfbfc3af42957c32d658743b187bedb4cfe865e
Message:

Merge

File:
1 edited

Legend:

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

    r9945 r10003  
    11import Orange 
    22 
    3 learners = [ Orange.classification.bayes.NaiveLearner(name = "bayes"), 
    4              Orange.classification.tree.TreeLearner(name="tree"), 
    5              Orange.classification.majority.MajorityLearner(name="majrty")] 
     3learners = [Orange.classification.bayes.NaiveLearner(name="bayes"), 
     4            Orange.classification.tree.TreeLearner(name="tree"), 
     5            Orange.classification.majority.MajorityLearner(name="majority")] 
    66 
    77voting = Orange.data.Table("voting") 
    88res = Orange.evaluation.testing.cross_validation(learners, voting) 
    99 
    10 vehicle = Orange.data.Table("vehicle") 
    11 resVeh = Orange.evaluation.testing.cross_validation(learners, vehicle) 
     10print "CA =", Orange.evaluation.scoring.CA(res) 
     11print "AUC = ", Orange.evaluation.scoring.AUC(res) 
Note: See TracChangeset for help on using the changeset viewer.