Scala, Mllib, Machine Learning, Linear Regression, Spark.
target feature to ‘label’ and moving it to the first position. The other features will remain unchanged. //("label", "features") val df = (data.select(data("Yearly Amount Spent").as("label"), $"Email", $"Avatar", $"Avg Session Length", $"Time on App", $"Time on Website", $"Length of Membership"))