Scala, Mllib, Machine Learning, Linear Regression, Spark.
//get output val output = assembler.transform(df).select($"label",$"features") In this step, I’ve chosen the features that will be used as inputs (X) for the model. These have been compiled into an array and labeled as ‘features’. Let’s build a linear regression model. Number of iterations: 100