Hello,
I am new to scala and spark.
What does the "this.type" in set function for?
https://github.com/apache/spark/blob/481f0792944d9a77f0fe8b5e2596da1d600b9d0a/mllib/src/main/scala/org/apache/spark/mllib/optimization/GradientDescent.scala#L48
Thanks!
Zhan
l that
> function, it will return the same type with the level that you called it.
>
> On Sun, Jul 23, 2017 at 8:20 PM Reynold Xin wrote:
>
>> It means the same object ("this") is returned.
>>
>> On Sun, Jul 23, 2017 at 8:16 PM, tao zhan wrote:
>>
>
Get it, thank you!
On Mon, Jul 24, 2017 at 11:50 AM, Reynold Xin wrote:
> This is a standard practice used for chaining, to support
>
> a.setStepSize(..)
> .set setRegParam(...)
>
>
> On Sun, Jul 23, 2017 at 8:47 PM, tao zhan wrote:
>
>> Thank you for re