| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
NaiveBayes
| Instance Methods | |
|
Inherited from |
| Class Methods | |||
|
|||
| Properties | |
|
Inherited from |
| Method Details |
Train a Naive Bayes model given an RDD of (label, features) vectors. This is the Multinomial NB (http://tinyurl.com/lsdw6p) which can handle all kinds of discrete data. For example, by converting documents into TF-IDF vectors, it can be used for document classification. By making every vector a 0-1 vector, it can also be used as Bernoulli NB (http://tinyurl.com/p7c96j6).
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Nov 24 15:21:12 2014 | http://epydoc.sourceforge.net |