Scala, Mllib, Machine Learning, Linear Regression, Spark.
Regularization: 0.3 ElasticNet mixing alpha parameter. If it is set to 0, then it means it will use only the L2 penalty. For alpha = 1, then it will only use the L1 penalty. Let’s select 0.8 value. //lineer regression model val lr = new LinearRegression() .setMaxIter(100) //number of iteration