| 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 Thu Sep 11 01:19:40 2014 | http://epydoc.sourceforge.net |