Github user dbtsai commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17078#discussion_r103342317
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala
 ---
    @@ -1431,7 +1431,12 @@ private class LogisticAggregator(
       private var weightSum = 0.0
       private var lossSum = 0.0
     
    -  private val gradientSumArray = Array.fill[Double](coefficientSize)(0.0D)
    +  @transient private lazy val coefficientsArray = bcCoefficients.value 
match {
    --- End diff --
    
    Can you have the type of `coefficientsArray` so people can clear know that 
it's a primitive array? 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to