You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mllib/src/main/scala/org/apache/spark/mllib/classification/NaiveBayes.scala
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -310,21 +310,21 @@ object NaiveBayes {
310
310
*
311
311
* The model type can be set to either Multinomial NB ([[http://tinyurl.com/lsdw6p]])
312
312
* or Bernoulli NB ([[http://tinyurl.com/p7c96j6]]). The Multinomial NB can handle
313
-
* discrete count data and can be called by setting the model type to "Multinomial".
313
+
* discrete count data and can be called by setting the model type to "multinomial".
314
314
* For example, it can be used with word counts or TF_IDF vectors of documents.
315
315
* The Bernoulli model fits presence or absence (0-1) counts. By making every vector a
316
-
* 0-1 vector and setting the model type to "Bernoulli", the fits and predicts as
316
+
* 0-1 vector and setting the model type to "bernoulli", the fits and predicts as
317
317
* Bernoulli NB.
318
318
*
319
319
* @paraminput RDD of `(label, array of features)` pairs. Every vector should be a frequency
320
320
* vector or a count vector.
321
321
* @paramlambda The smoothing parameter
322
322
*
323
323
* @parammodelType The type of NB model to fit from the enumeration NaiveBayesModels, can be
0 commit comments