Changeset 7236:7bd2f142eb80 in orange


Ignore:
Timestamp:
02/02/11 20:37:33 (3 years ago)
Author:
lanz <lan.zagar@…>
Branch:
default
Convert:
776c155379f4be59b27e0716e9d9c2209af1622d
Message:
 
File:
1 edited

Legend:

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

    r7208 r7236  
    11# Description: Shows how to "learn" the majority class and compare other classifiers to the default classification 
    22# Category:    default classification accuracy, statistics 
    3 # Classes:     MajorityLearner, DefaultClassifier, orngTest.crossValidation 
    4 # Uses:        monk1 
     3# Classes:     MajorityLearner, ConstantClassifier, Orange.evaluate.crossValidation 
     4# Uses:        monks-1 
    55# Referenced:  majority.htm 
    66 
     7import Orange 
    78import orange, orngTest, orngStat 
    89 
    9 data = orange.ExampleTable("monk1") 
     10data = Orange.data.Table("monks-1") 
    1011 
    1112treeLearner = orange.TreeLearner() 
    1213bayesLearner = orange.BayesLearner() 
    13 majorityLearner = orange.MajorityLearner() 
     14majorityLearner = Orange.classification.majority.MajorityLearner() 
    1415learners = [treeLearner, bayesLearner, majorityLearner] 
    1516 
Note: See TracChangeset for help on using the changeset viewer.