Home | Trees | Indices | Help |
|
---|
|
object --+ | api.ClassifierI --+ | NaiveBayesClassifier
A Naive Bayes classifier. Naive Bayes classifiers are paramaterized by two probability distributions:
If the classifier encounters an input with a feature that has never been seen with any label, then rather than assigning a probability of 0 to all labels, it will ignore that feature.
The feature value 'None' is reserved for unseen feature values; you generally should not use 'None' as a feature value for one of your own features.
|
|||
|
|||
list of (immutable)
|
|
||
label |
|
||
ProbDistI |
|
||
|
|||
|
|||
Inherited from Inherited from |
|||
Deprecated | |||
---|---|---|---|
Inherited from |
|
|||
|
|
|||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
|
|
|
Return a list of the 'most informative' features used by this
classifier. For the purpose of this function, the informativeness of a
feature max[ P(fname=fval|label1) / P(fname=fval|label2) ] |
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Aug 27 15:08:52 2008 | http://epydoc.sourceforge.net |