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

    https://github.com/apache/spark/pull/3636#discussion_r29171065
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/optimization/GradientDescent.scala 
---
    @@ -219,4 +268,30 @@ object GradientDescent extends Logging {
         (weights, stochasticLossHistory.toArray)
     
       }
    +
    +  def runMiniBatchSGD(
    +      data: RDD[(Double, Vector)],
    +      gradient: Gradient,
    +      updater: Updater,
    +      stepSize: Double,
    +      numIterations: Int,
    +      regParam: Double,
    +      miniBatchFraction: Double,
    +      initialWeights: Vector): (Vector, Array[Double]) =
    +    GradientDescent.runMiniBatchSGD(data, gradient, updater, stepSize, 
numIterations,
    +                                    regParam, miniBatchFraction, 
initialWeights, 0.001)
    +
    +
    +  private def isConverged(previousWeights: Vector, currentWeights: Vector,
    --- End diff --
    
    scala style: Since the method header takes more than 1 line, this should 
have 1 argument per line.


---
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