Logistic Regression with Spark : Learn Data Science
Logistic regression with Spark is achieved using MLlib. Logistic regression returns binary class labels that is “0” or “1”. In this example, we consider a data set that consists only one variable “study hours” and class label is whether the student passed (1) or not passed (0).
1 | from pyspark import SparkContext |
Output:
1 | spark-submit regression-mllib.py |
References:
Logistic Regression with Spark : Learn Data Science
http://idevji.com/logistic-regression-with-spark-learn-data-science.html