Changeset 7225:76078ac859db in orange


Ignore:
Timestamp:
02/02/11 18:41:10 (3 years ago)
Author:
anze <anze.staric@…>
Branch:
default
Convert:
2c15b47dfed97f7b309794ddd7a1cfce12a1c646
Message:

bayes documentation Examples

Location:
orange
Files:
1 added
3 edited

Legend:

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

    r7211 r7225  
    22   index:: naive bayes 
    33 
    4 ======================= 
    5 Support Vector Machines 
    6 ======================= 
     4========================= 
     5Naive Bayesian Classifier 
     6========================= 
    77 
    88.. index:: Naive Bayesian Learner 
    9 .. autoclass:: Orange.classify.bayes.NaiveBayes 
     9.. autoclass:: Orange.classification.bayes.NaiveBayes 
    1010   :members: 
    1111    
     
    2929            return self 
    3030         
    31     def __init__(self, m=0, estimatorConstructor=None, 
    32                  conditionalEstimatorConstructor=None, 
     31    def __init__(self, normalizePredictions=True, adjustTreshold=False, 
     32                 m=0, estimatorConstructor=None, conditionalEstimatorConstructor=None, 
    3333                 conditionalEstimatorConstructorContinuous=None,**argkw): 
    3434        """ 
     35        :param adjustTreshold: If set and the class is binary, the classifier's 
     36                threshold will be set as to optimize the classification accuracy. 
     37                The threshold is tuned by observing the probabilities predicted on 
     38                learning data. Default is False (to conform with the usual naive 
     39                bayesian classifiers), but setting it to True can increase the 
     40                accuracy considerably. 
     41        :type adjustTreshold: boolean 
    3542        :param m: m for m-estimate. If set, m-estimation of probabilities 
    3643                will be used using :class:`orange.ProbabilityEstimatorConstructor_m` 
     
    5259        :type conditionalEstimatorConstructorContinuous: orange.ConditionalProbabilityEstimatorConstructor 
    5360        """ 
     61        self.adjustThreshold = adjustTreshold 
    5462        self.m = m 
    5563        self.estimatorConstructor = estimatorConstructor 
  • orange/doc/Orange/rst/index.rst

    r7208 r7225  
    1313 
    1414   orange.cluster 
     15   orange.classification.bayes 
    1516   orange.classification.majority 
    1617   orange.classification.svm 
  • orange/doc/Orange/rst/orange.classification.bayes.rst

    r7211 r7225  
    1 ===================== 
    2 orange.classify.bayes 
    3 ===================== 
     1=========================== 
     2orange.classification.bayes 
     3=========================== 
    44 
    5 .. automodule:: classification 
     5.. automodule:: Orange.classification.bayes 
Note: See TracChangeset for help on using the changeset viewer.