Scala, Mllib, Machine Learning, Linear Regression, Spark.
.setRegParam(0.3) //regularization parameter .setElasticNetParam(0.8) //elasticNet mixing parametr Fitting the model: //training val model = lr.fit(output) Line: //coefficient and intercept of the line println(s"Coefficients: ${model.coefficients} Intercept: ${model.intercept}") //Coefficients: