Ignore:
Timestamp:
02/07/12 19:04:58 (2 years ago)
Author:
anze <anze.staric@…>
Branch:
default
Children:
10000:d65550cf0356, 10003:1631c2f30f11
rebase_source:
395f47303359a995a9ab21929a90119d9a55de6f
Message:

Improved documentation.

File:
1 edited

Legend:

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

    r9372 r9999  
    1 import orange, orngTest, orngTree 
     1import Orange 
    22 
    3 learners = [orange.BayesLearner(name = "bayes"), 
    4             orngTree.TreeLearner(name="tree"), 
    5             orange.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 
    7 voting = orange.ExampleTable("voting") 
    8 res = orngTest.crossValidation(learners, voting) 
     7voting = Orange.data.Table("voting") 
     8res = Orange.evaluation.testing.cross_validation(learners, voting) 
    99 
    10 vehicle = orange.ExampleTable("vehicle") 
    11 resVeh = orngTest.crossValidation(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.