Training models with MLlib is pretty straightforward. See the following code snippet:
workhours_model_lm = reg.LinearRegressionWithSGD.train(final_data_hours_train)
Training models with MLlib is pretty straightforward. See the following code snippet:
workhours_model_lm = reg.LinearRegressionWithSGD.train(final_data_hours_train)