huaxingao commented on a change in pull request #28786:
URL: https://github.com/apache/spark/pull/28786#discussion_r438331465
##########
File path:
mllib/src/test/scala/org/apache/spark/ml/classification/LogisticRegressionSuite.scala
##########
@@ -2605,13 +2608,15 @@ class LogisticRegressionSuite extends MLTest with
DefaultReadWriteTest {
assert(allZeroInterceptModel.coefficients ~== Vectors.dense(0.0) absTol
1E-3)
assert(allZeroInterceptModel.intercept === Double.NegativeInfinity)
assert(allZeroInterceptModel.summary.totalIterations === 0)
+ assert(allZeroInterceptModel.summary.objectiveHistory(0) ~== 0.0 absTol
1e-4)
Review comment:
since I change the objectiveHistory from Array.empty to Array(0.0),
summary.objectiveHistory(0) should be 0.0.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]