Changeset 7565:8866770eaf2e in orange


Ignore:
Timestamp:
02/04/11 22:51:40 (3 years ago)
Author:
blaz <blaz.zupan@…>
Branch:
default
Convert:
989abbcdc78ab2ffa1f7af018641b512afec37db
Message:

Revised intro, removed "Example" before code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/classification/bayes.py

    r7541 r7565  
    99********************** 
    1010 
    11 The most primitive bayesian classifier is :obj:`NaiveLearner`  
    12 (http://en.wikipedia.org/wiki/Naive_Bayes_classifier). 
    13 The class estimates conditional probabilities from training data and uses them 
    14 for classification of new data instances.  
    15  
    16 Example (`bayes-run.py`_, uses `iris.tab`_) 
     11The most primitive Bayesian classifier is :obj:`NaiveLearner`.  
     12`Naive Bayes classification algorithm <http://en.wikipedia.org/wiki/Naive_Bayes_classifier>`_  
     13estimates conditional probabilities from training data and uses them 
     14for classification of new data instances (`bayes-run.py`_, uses `iris.tab`_): 
    1715 
    1816.. literalinclude:: code/bayes-run.py 
    19     :lines: 7- 
     17   :lines: 7- 
    2018 
    2119.. index:: Naive Bayesian Learner 
     
    3028Examples 
    3129======== 
    32 NaiveLearner can estimate probabilities using relative frequencies or 
    33 m-estimate. 
    34  
    35 Example (`bayes-mestimate.py`_, uses `lenses.tab`_) 
     30:obj:`NaiveLearner` can estimate probabilities using relative frequencies or 
     31m-estimate (`bayes-mestimate.py`_, uses `lenses.tab`_): 
    3632 
    3733.. literalinclude:: code/bayes-mestimate.py 
     
    4137shift towards the second class - as compared to probabilities above, where 
    4238relative frequencies were used. Note that the change in error estimation did 
    43 not have any effect on apriori 
    44 probabilities. 
    45  
    46 Example (`bayes-thresholdAdjustment.py`_, uses `adult-sample.tab`_) 
     39not have any effect on apriori probabilities 
     40(`bayes-thresholdAdjustment.py`_, uses `adult-sample.tab`_): 
    4741 
    4842.. literalinclude:: code/bayes-thresholdAdjustment.py 
Note: See TracChangeset for help on using the changeset viewer.