Re: Need help with SVM

2016-10-26 Thread Robin East
o:adityavya...@gmail.com>> > Date: Tue, Oct 25, 2016 at 8:16 PM > Subject: Re: Need help with SVM > To: Aseem Bansal mailto:asmbans...@gmail.com>> > > > Hello, > Here is the public > gist:https://gist.github.com/aditya1702/760cd5c95a6

Re: Need help with SVM

2016-10-26 Thread Robin East
As per Assem’s point what do you get from data_rdd.toDF.groupBy("label").count.show > On 25 Oct 2016, at 15:41, Aseem Bansal wrote: > > Is there any labeled point with label 0 in your dataset? > > On Tue, Oct 25, 2016 at 2:13 AM, aditya1702 > wrote: > Hello,

Re: Need help with SVM

2016-10-25 Thread Aseem Bansal
Is there any labeled point with label 0 in your dataset? On Tue, Oct 25, 2016 at 2:13 AM, aditya1702 wrote: > Hello, > I am using linear SVM to train my model and generate a line through my > data. > However my model always predicts 1 for all the feature examples. Here is my > code: > > print da