Re: Gradient Descent with MLBase

2014-06-08 Thread Aslan Bekirov
Hi DB,

Thanks a lot.
Appreciated.

BR,
Aslan


On Sun, Jun 8, 2014 at 2:52 AM, DB Tsai  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 
> 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
>>
>>
>


Re: Gradient Descent with MLBase

2014-06-07 Thread DB Tsai
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 
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
>
>


Gradient Descent with MLBase

2014-06-07 Thread Aslan Bekirov
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