You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by yxzhao <yx...@ualr.edu> on 2014/05/14 22:36:57 UTC

How to run the SVM and LogisticRegression

Hello,
I found the classfication algorithms SVM and LogisticRegression implemented
in the following directory. And how to run them? What is the commnad line
should be? Thanks.
spark-0.9.0-incubating/mllib/src/main/scala/org/apache/spark/mllib/classification



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/How-to-run-the-SVM-and-LogisticRegression-tp5720.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: How to run the SVM and LogisticRegression

Posted by yxzhao <yx...@ualr.edu>.
 Thanks Andrew,

         Yes, I have downloaded the master code.
         But, actually I just want to know how to run the
classfication algorithms SVM and LogisticRegression implemented under
/spark-0.9.0-incubating/mllib/src/main/scala/org/apache/spark/mllib/classification
. Thanks.

On Mon, May 19, 2014 at 10:37 PM, Andrew Ash [via Apache Spark User
List] <ml...@n3.nabble.com> wrote:
> Hi yxzhao,
>
> Those are branches in the source code git repository.  You can get to them
> with "git checkout branch-1.0" once you've cloned the git repository.
>
> Cheers,
> Andrew
>
>
> On Mon, May 19, 2014 at 8:30 PM, yxzhao <[hidden email]> wrote:
>>
>> Thanks Xiangrui,
>>
>>          Sorry I am new for Spark, could you give me more detail about
>> "master or branch-1.0"  I do not know what "master or branch-1.0" is.
>> Thanks again.
>>
>>
>> On Mon, May 19, 2014 at 10:17 PM, Xiangrui Meng [via Apache Spark User
>> List] <[hidden email]> wrote:
>>
>> > Checkout the master or branch-1.0. Then the examples should be there.
>> > -Xiangrui
>> >
>> > On Mon, May 19, 2014 at 11:36 AM, yxzhao <[hidden email]> wrote:
>>
>> >
>> >> Thanks Xiangrui,
>> >>
>> >> But I did not find the directory:
>> >> examples/src/main/scala/org/apache/spark/examples/mllib.
>> >> Could you give me more detail or show me one example? Thanks a lot.
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> >> http://apache-spark-user-list.1001560.n3.nabble.com/How-to-run-the-SVM-and-LogisticRegression-tp5720p6049.html
>> >> Sent from the Apache Spark User List mailing list archive at
>> >> Nabble.com.
>> >
>> >
>> > ________________________________
>> > If you reply to this email, your message will be added to the discussion
>> > below:
>> >
>> > http://apache-spark-user-list.1001560.n3.nabble.com/How-to-run-the-SVM-and-LogisticRegression-tp5720p6064.html
>> > To unsubscribe from How to run the SVM and LogisticRegression, click
>> > here.
>> > NAML
>>
>> ________________________________
>> View this message in context: Re: How to run the SVM and
>> LogisticRegression
>>
>> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
>
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-spark-user-list.1001560.n3.nabble.com/How-to-run-the-SVM-and-LogisticRegression-tp5720p6066.html
> To unsubscribe from How to run the SVM and LogisticRegression, click here.
> NAML




--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/How-to-run-the-SVM-and-LogisticRegression-tp5720p6070.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: How to run the SVM and LogisticRegression

Posted by Andrew Ash <an...@andrewash.com>.
Hi yxzhao,

Those are branches in the source code git repository.  You can get to them
with "git checkout branch-1.0" once you've cloned the git repository.

Cheers,
Andrew


On Mon, May 19, 2014 at 8:30 PM, yxzhao <yx...@ualr.edu> wrote:

> Thanks Xiangrui,
>
>          Sorry I am new for Spark, could you give me more detail about
> "master or branch-1.0"  I do not know what "master or branch-1.0" is.
> Thanks again.
>
>
> On Mon, May 19, 2014 at 10:17 PM, Xiangrui Meng [via Apache Spark User
> List] <[hidden email] <http://user/SendEmail.jtp?type=node&node=6065&i=0>>
> wrote:
>
> > Checkout the master or branch-1.0. Then the examples should be there.
> > -Xiangrui
> >
> > On Mon, May 19, 2014 at 11:36 AM, yxzhao <[hidden email]> wrote:
> >
> >> Thanks Xiangrui,
> >>
> >> But I did not find the directory:
> >> examples/src/main/scala/org/apache/spark/examples/mllib.
> >> Could you give me more detail or show me one example? Thanks a lot.
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://apache-spark-user-list.1001560.n3.nabble.com/How-to-run-the-SVM-and-LogisticRegression-tp5720p6049.html
> >> Sent from the Apache Spark User List mailing list archive at
> Nabble.com.
> >
> >
> > ________________________________
> > If you reply to this email, your message will be added to the discussion
> > below:
> >
> http://apache-spark-user-list.1001560.n3.nabble.com/How-to-run-the-SVM-and-LogisticRegression-tp5720p6064.html
> > To unsubscribe from How to run the SVM and LogisticRegression, click
> here.
> > NAML
>
> ------------------------------
> View this message in context: Re: How to run the SVM and
> LogisticRegression<http://apache-spark-user-list.1001560.n3.nabble.com/How-to-run-the-SVM-and-LogisticRegression-tp5720p6065.html>
>
> Sent from the Apache Spark User List mailing list archive<http://apache-spark-user-list.1001560.n3.nabble.com/>at Nabble.com.
>

Re: How to run the SVM and LogisticRegression

Posted by yxzhao <yx...@ualr.edu>.
Thanks Xiangrui,

         Sorry I am new for Spark, could you give me more detail about
"master or branch-1.0"  I do not know what "master or branch-1.0" is.
Thanks again.


On Mon, May 19, 2014 at 10:17 PM, Xiangrui Meng [via Apache Spark User
List] <ml...@n3.nabble.com> wrote:
> Checkout the master or branch-1.0. Then the examples should be there.
> -Xiangrui
>
> On Mon, May 19, 2014 at 11:36 AM, yxzhao <[hidden email]> wrote:
>
>> Thanks Xiangrui,
>>
>> But I did not find the directory:
>> examples/src/main/scala/org/apache/spark/examples/mllib.
>> Could you give me more detail or show me one example? Thanks a lot.
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-spark-user-list.1001560.n3.nabble.com/How-to-run-the-SVM-and-LogisticRegression-tp5720p6049.html
>> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-spark-user-list.1001560.n3.nabble.com/How-to-run-the-SVM-and-LogisticRegression-tp5720p6064.html
> To unsubscribe from How to run the SVM and LogisticRegression, click here.
> NAML




--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/How-to-run-the-SVM-and-LogisticRegression-tp5720p6065.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: How to run the SVM and LogisticRegression

Posted by Xiangrui Meng <me...@gmail.com>.
Checkout the master or branch-1.0. Then the examples should be there. -Xiangrui

On Mon, May 19, 2014 at 11:36 AM, yxzhao <yx...@ualr.edu> wrote:
> Thanks Xiangrui,
>
> But I did not find the directory:
> examples/src/main/scala/org/apache/spark/examples/mllib.
> Could you give me more detail or show me one example? Thanks a lot.
>
>
>
> --
> View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/How-to-run-the-SVM-and-LogisticRegression-tp5720p6049.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: How to run the SVM and LogisticRegression

Posted by yxzhao <yx...@ualr.edu>.
Thanks Xiangrui,

But I did not find the directory:
examples/src/main/scala/org/apache/spark/examples/mllib.
Could you give me more detail or show me one example? Thanks a lot.



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/How-to-run-the-SVM-and-LogisticRegression-tp5720p6049.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: How to run the SVM and LogisticRegression

Posted by Xiangrui Meng <me...@gmail.com>.
If you check out the master branch, there are some examples that can
be used as templates under

examples/src/main/scala/org/apache/spark/examples/mllib

Best,
Xiangrui

On Wed, May 14, 2014 at 1:36 PM, yxzhao <yx...@ualr.edu> wrote:
>
> Hello,
> I found the classfication algorithms SVM and LogisticRegression implemented
> in the following directory. And how to run them? What is the commnad line
> should be? Thanks.
> spark-0.9.0-incubating/mllib/src/main/scala/org/apache/spark/mllib/classification
>
>
>
> --
> View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/How-to-run-the-SVM-and-LogisticRegression-tp5720.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: How to run the SVM and LogisticRegression

Posted by yxzhao <yx...@ualr.edu>.
Thanks, Debasish, 
Could you let me know the full path of BinaryClassification.scala and how to
run the SVM or LR? I did not find this file in Spark 0.9.0.




--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/How-to-run-the-SVM-and-LogisticRegression-tp5720p6182.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: How to run the SVM and LogisticRegression

Posted by Debasish Das <de...@gmail.com>.
There are examples to run them in BinaryClassification.scala in
org.apache.spark.examples...



On Wed, May 14, 2014 at 1:36 PM, yxzhao <yx...@ualr.edu> wrote:

>
> Hello,
> I found the classfication algorithms SVM and LogisticRegression implemented
> in the following directory. And how to run them? What is the commnad line
> should be? Thanks.
>
> spark-0.9.0-incubating/mllib/src/main/scala/org/apache/spark/mllib/classification
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/How-to-run-the-SVM-and-LogisticRegression-tp5720.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>