You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Aakash Basu <aa...@gmail.com> on 2016/09/01 19:42:35 UTC

Fwd: Need some help

---------- Forwarded message ----------
From: Aakash Basu <aa...@gmail.com>
Date: Thu, Aug 25, 2016 at 10:06 PM
Subject: Need some help
To: user@spark.apache.org


Hi all,

Aakash here, need a little help in KMeans clustering.

This is needed to be done:

"Implement Kmeans Clustering Algorithm without using the libraries of
Spark. You're given a txt file with object ids and features from which you
have to use the features as your data points. This will be a part of the
code itself"

PFA the file with ObjectIDs and features. Now how to go ahead and work on
it?

Thanks,
Aakash.

Re: Fwd: Need some help

Posted by Aakash Basu <aa...@gmail.com>.
Hi Shashank/All,

Yes you got it right, that's what I need to do. Can I get some help in
this? I've no clue what it is and how to work on it.

Thanks,
Aakash.

On Fri, Sep 2, 2016 at 1:48 AM, Shashank Mandil <ma...@gmail.com>
wrote:

> Hi Aakash,
>
> I think what it generally means that you have to use the general spark
> APIs of Dataframe to bring in the data and crunch the numbers, however you
> cannot use the KMeansClustering algorithm which is already present in the
> MLlib spark library.
>
> I think a good place to start would be understanding what the KMeans
> clustering algorithm is and then looking into how you can use the DataFrame
> API to implement the KMeansClustering.
>
> Thanks,
> Shashank
>
> On Thu, Sep 1, 2016 at 1:05 PM, Aakash Basu <aa...@gmail.com>
> wrote:
>
>> Hey Siva,
>>
>> It needs to be done with Spark, without the use of any Spark libraries.
>> Need some help in this.
>>
>> Thanks,
>> Aakash.
>>
>> On Fri, Sep 2, 2016 at 1:25 AM, Sivakumaran S <si...@icloud.com>
>> wrote:
>>
>>> If you are to do it without Spark, you are asking at the wrong place.
>>> Try Python + scikit-learn. Or R. If you want to do it with a UI based
>>> software, try Weka or Orange.
>>>
>>> Regards,
>>>
>>> Sivakumaran S
>>>
>>> On 1 Sep 2016 8:42 p.m., Aakash Basu <aa...@gmail.com> wrote:
>>>
>>>
>>> ---------- Forwarded message ----------
>>> From: *Aakash Basu* <aa...@gmail.com>
>>> Date: Thu, Aug 25, 2016 at 10:06 PM
>>> Subject: Need some help
>>> To: user@spark.apache.org
>>>
>>>
>>> Hi all,
>>>
>>> Aakash here, need a little help in KMeans clustering.
>>>
>>> This is needed to be done:
>>>
>>> "Implement Kmeans Clustering Algorithm without using the libraries of
>>> Spark. You're given a txt file with object ids and features from which you
>>> have to use the features as your data points. This will be a part of the
>>> code itself"
>>>
>>> PFA the file with ObjectIDs and features. Now how to go ahead and work
>>> on it?
>>>
>>> Thanks,
>>> Aakash.
>>>
>>>
>>>
>>
>

Re: Fwd: Need some help

Posted by Shashank Mandil <ma...@gmail.com>.
Hi Aakash,

I think what it generally means that you have to use the general spark APIs
of Dataframe to bring in the data and crunch the numbers, however you
cannot use the KMeansClustering algorithm which is already present in the
MLlib spark library.

I think a good place to start would be understanding what the KMeans
clustering algorithm is and then looking into how you can use the DataFrame
API to implement the KMeansClustering.

Thanks,
Shashank

On Thu, Sep 1, 2016 at 1:05 PM, Aakash Basu <aa...@gmail.com>
wrote:

> Hey Siva,
>
> It needs to be done with Spark, without the use of any Spark libraries.
> Need some help in this.
>
> Thanks,
> Aakash.
>
> On Fri, Sep 2, 2016 at 1:25 AM, Sivakumaran S <si...@icloud.com>
> wrote:
>
>> If you are to do it without Spark, you are asking at the wrong place. Try
>> Python + scikit-learn. Or R. If you want to do it with a UI based software,
>> try Weka or Orange.
>>
>> Regards,
>>
>> Sivakumaran S
>>
>> On 1 Sep 2016 8:42 p.m., Aakash Basu <aa...@gmail.com> wrote:
>>
>>
>> ---------- Forwarded message ----------
>> From: *Aakash Basu* <aa...@gmail.com>
>> Date: Thu, Aug 25, 2016 at 10:06 PM
>> Subject: Need some help
>> To: user@spark.apache.org
>>
>>
>> Hi all,
>>
>> Aakash here, need a little help in KMeans clustering.
>>
>> This is needed to be done:
>>
>> "Implement Kmeans Clustering Algorithm without using the libraries of
>> Spark. You're given a txt file with object ids and features from which you
>> have to use the features as your data points. This will be a part of the
>> code itself"
>>
>> PFA the file with ObjectIDs and features. Now how to go ahead and work on
>> it?
>>
>> Thanks,
>> Aakash.
>>
>>
>>
>

Re: Fwd: Need some help

Posted by Aakash Basu <aa...@gmail.com>.
Hey Siva,

It needs to be done with Spark, without the use of any Spark libraries.
Need some help in this.

Thanks,
Aakash.

On Fri, Sep 2, 2016 at 1:25 AM, Sivakumaran S <si...@icloud.com>
wrote:

> If you are to do it without Spark, you are asking at the wrong place. Try
> Python + scikit-learn. Or R. If you want to do it with a UI based software,
> try Weka or Orange.
>
> Regards,
>
> Sivakumaran S
>
> On 1 Sep 2016 8:42 p.m., Aakash Basu <aa...@gmail.com> wrote:
>
>
> ---------- Forwarded message ----------
> From: *Aakash Basu* <aa...@gmail.com>
> Date: Thu, Aug 25, 2016 at 10:06 PM
> Subject: Need some help
> To: user@spark.apache.org
>
>
> Hi all,
>
> Aakash here, need a little help in KMeans clustering.
>
> This is needed to be done:
>
> "Implement Kmeans Clustering Algorithm without using the libraries of
> Spark. You're given a txt file with object ids and features from which you
> have to use the features as your data points. This will be a part of the
> code itself"
>
> PFA the file with ObjectIDs and features. Now how to go ahead and work on
> it?
>
> Thanks,
> Aakash.
>
>
>