Changeset 7372:62897d7a356a in orange


Ignore:
Timestamp:
02/04/11 00:44:11 (3 years ago)
Author:
lanz <lan.zagar@…>
Branch:
default
Convert:
908fb91fdcab010d307f647b091488ed9300cdbd
Message:

Updated to new NaiveLearner, and changed data->table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/doc/Orange/rst/code/majority.py

    r7356 r7372  
    88import orange, orngTest, orngStat 
    99 
    10 data = Orange.data.Table("monks-1") 
     10table = Orange.data.Table("monks-1") 
    1111 
    12 treeLearner = Orange.classification.tree.TreeLearner() #orange.TreeLearner() 
    13 bayesLearner = Orange.classification.bayes.NaiveBayesLearner() 
     12treeLearner = Orange.classification.tree.TreeLearner() 
     13bayesLearner = Orange.classification.bayes.NaiveLearner() 
    1414majorityLearner = Orange.classification.majority.MajorityLearner() 
    1515learners = [treeLearner, bayesLearner, majorityLearner] 
    1616 
    17 res = orngTest.crossValidation(learners, data) 
     17res = orngTest.crossValidation(learners, table) 
    1818CAs = orngStat.CA(res, reportSE = 1) 
    1919 
Note: See TracChangeset for help on using the changeset viewer.