Github user MLnick commented on a diff in the pull request:
https://github.com/apache/spark/pull/20332#discussion_r162873388
--- Diff:
examples/src/main/scala/org/apache/spark/examples/ml/MulticlassLogisticRegressionWithElasticNetExample.scala
---
@@ -49,6 +49,48 @@ object MulticlassLogisticRegressionWithElasticNetExample
{
// Print the coefficients and intercept for multinomial logistic
regression
println(s"Coefficients: \n${lrModel.coefficientMatrix}")
println(s"Intercepts: \n${lrModel.interceptVector}")
+
+ val trainingSummary = lrModel.summary
+
+ val objectiveHistory = trainingSummary.objectiveHistory
--- End diff --
ditto here for the comment to be consistent with Java / Python versions
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]