Changeset 9635:f7279fdd2d42 in orange


Ignore:
Timestamp:
02/05/12 21:00:00 (2 years ago)
Author:
anze <anze.staric@…>
Branch:
default
rebase_source:
e2a22e4eea7e665ace539432f26598c1ac8345ce
Message:

Improved bayes documentation.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/Orange.classification.bayes.rst

    r9616 r9635  
    1111 
    1212A `Naive Bayes classifier 
    13 <http://en.wikipedia.org/wiki/Naive_Bayes_classifier>`_ is a simple 
     13<http://en.wikipedia.org/wiki/Naive_Bayes_classifier>`_ is a 
    1414probabilistic classifier that estimates conditional probabilities of the 
    1515dependant variable from training data and uses them for classification 
     
    5757 
    5858Probability distributions for continuous features are estimated with \ 
    59 :class:`Orange.statistics.estimate.Loess`. 
     59:class:`~Orange.statistics.estimate.Loess`. 
    6060 
    6161.. literalinclude:: code/bayes-plot-iris.py 
  • orange/Orange/classification/bayes.py

    r9333 r9635  
    2222     
    2323        m for m-estimate. If set, m-estimation of probabilities 
    24         will be used using :class:`Orange.statistics.estimate.M`. 
     24        will be used using :class:`~Orange.statistics.estimate.M`. 
    2525        This attribute is ignored if you also set :obj:`estimator_constructor`. 
    2626         
     
    2929        Probability estimator constructor for 
    3030        prior class probabilities. Defaults to 
    31         :class:`Orange.statistics.estimate.RelativeFrequency`. 
     31        :class:`~Orange.statistics.estimate.RelativeFrequency`. 
    3232        Setting this attribute disables the above described attribute :obj:`m`. 
    3333         
     
    4242        Probability estimator constructor for conditional probabilities for 
    4343        continuous features. Defaults to  
    44         :class:`Orange.statistics.estimate.Loess`. 
     44        :class:`~Orange.statistics.estimate.Loess`. 
    4545    """ 
    4646     
     
    6767         
    6868        :param data: Data instances to learn from. 
    69         :type data: Orange.data.Table 
     69        :type data: :class:`~Orange.data.Table` 
    7070        :param weight: Id of meta attribute with weights of instances 
    7171        :type weight: int 
    72         :rtype: :class:`Orange.classification.bayes.NaiveClassifier` 
     72        :rtype: :class:`~Orange.classification.bayes.NaiveClassifier` 
    7373        """ 
    7474        bayes = _BayesLearner() 
     
    140140         
    141141        :param instance: instance to be classified. 
    142         :type instance: :class:`Orange.data.Instance` 
    143         :param result_type: :class:`Orange.classification.Classifier.GetValue` or \ 
    144               :class:`Orange.classification.Classifier.GetProbabilities` or 
    145               :class:`Orange.classification.Classifier.GetBoth` 
     142        :type instance: :class:`~Orange.data.Instance` 
     143        :param result_type: :class:`~Orange.classification.Classifier.GetValue` or 
     144              :class:`~Orange.classification.Classifier.GetProbabilities` or 
     145              :class:`~Orange.classification.Classifier.GetBoth` 
    146146         
    147         :rtype: :class:`Orange.data.Value`,  
    148               :class:`Orange.statistics.distribution.Distribution` or a tuple with both 
     147        :rtype: :class:`~Orange.data.Value`, 
     148              :class:`~Orange.statistics.distribution.Distribution` or a 
     149              tuple with both 
    149150        """ 
    150151        return self.native_bayes_classifier(instance, result_type, *args, **kwdargs) 
     
    166167        :param class_: class value for which the probability should be 
    167168                output. 
    168         :type class_: :class:`Orange.data.Value` 
     169        :type class_: :class:`~Orange.data.Value` 
    169170        :param instance: instance to be classified. 
    170         :type instance: :class:`Orange.data.Instance` 
     171        :type instance: :class:`~Orange.data.Instance` 
    171172         
    172173        """ 
Note: See TracChangeset for help on using the changeset viewer.