Just like with the linear regression, building a logistic regression starts with creating a LogisticRegressionWithSGD object:
import pyspark.mllib.classification as cl
income_model_lr = cl.LogisticRegressionWithSGD.train(final_data_income_train)
Just like with the linear regression, building a logistic regression starts with creating a LogisticRegressionWithSGD object:
import pyspark.mllib.classification as cl
income_model_lr = cl.LogisticRegressionWithSGD.train(final_data_income_train)