spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aslan Bekirov <aslanbeki...@gmail.com>
Subject Re: Gradient Descent with MLBase
Date Sun, 08 Jun 2014 09:09:05 GMT
Hi DB,

Thanks a lot.
Appreciated.

BR,
Aslan


On Sun, Jun 8, 2014 at 2:52 AM, DB Tsai <dbtsai@stanford.edu> wrote:

> 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