Github user mrkm4ntr commented on a diff in the pull request:
https://github.com/apache/spark/pull/19988#discussion_r157243741
--- Diff:
mllib/src/main/scala/org/apache/spark/ml/optim/NormalEquationSolver.scala ---
@@ -109,6 +109,11 @@ private[optim] class QuasiNewtonSolver(
state = states.next()
arrayBuilder += state.adjustedValue
}
+ if (state == null || state.searchFailed) {
+ val msg = s"${optimizer.getClass.getName} failed."
+ logError(msg)
--- End diff --
Thanks for your review.
Is this a comment about the logging level?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]