How to do it...

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)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset