spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DB Tsai <dbt...@stanford.edu>
Subject Re: Gradient Descent with MLBase
Date Sat, 07 Jun 2014 23:52:32 GMT
Hi Aslan,

You can check out the unittest code of GradientDescent.runMiniBatchSGD

https://github.com/apache/spark/blob/master/mllib/src/test/scala/org/apache/spark/mllib/optimization/GradientDescentSuite.scala


Sincerely,

DB Tsai
-------------------------------------------------------
My Blog: https://www.dbtsai.com
LinkedIn: https://www.linkedin.com/in/dbtsai


On Sat, Jun 7, 2014 at 6:24 AM, Aslan Bekirov <aslanbekirov@gmail.com>
wrote:

> Hi All,
>
> I have to create a model using SGD in mlbase. I examined a bit mlbase and
> run some samples of classification , collaborative filtering etc.. But I
> could not run Gradient descent. I have to run
>
>  "val model =  GradientDescent.runMiniBatchSGD(params)"
>
> of course before params must be computed. I tried but could not managed to
> give parameters correctly.
>
> Can anyone explain parameters a bit and give an example of code?
>
> BR,
> Aslan
>
>

Mime
View raw message