Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Spark - PySpark ML NaiveBayes

Spark - PySpark ML NaiveBayes

New Contributor

Hello,

 

I am trying to implement NaiveBayes model using Cloudera PySpark ML libraries.(https://spark.apache.org/docs/1.6.1/api/python/pyspark.ml.html#pyspark.ml.classification.NaiveBayes)

 

It does not provide conditional probabilities which are the main component of the model. Examples online does not show how input and output are determined. Please help with the details.

 

1. What should be the input?

2. Is anyone implementing this model? How?