How to do it...

Training models with MLlib is pretty straightforward. See the following code snippet:

workhours_model_lm = reg.LinearRegressionWithSGD.train(final_data_hours_train)
..................Content has been hidden....................

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