scala - How is logistic regression parallelized in Spark? -


i wouldlike have insight method used parallelize logistic regression in ml library, tried check source code didn't understand process.

spark uses called mini batch gradient descent regression:

http://ruder.io/optimizing-gradient-descent/index.html#minibatchgradientdescent

in nutshell, works this:

  1. select sample of data
  2. compute gradient on each row of sample
  3. aggregate gradient
  4. back step 1

the actual optimisation code spark line: https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/mllib/optimization/gradientdescent.scala#l234


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -