Re: Problem in running MLlib SVM

2015-11-30 Thread Fazlan Nazeem
int label = (int) p.label(); >>>>Double score = model.predict(p.features()); >>>>if((score >=0 && label == 1) || (score <0 && label == 0)) >>>>{ >>>>return 1; //correct classiciation >&g

Re: PMML version in MLLib

2015-11-08 Thread Fazlan Nazeem
-8545. > > Thanks, > Vincenzo > > On Wed, Nov 4, 2015 at 12:14 PM, Fazlan Nazeem <fazl...@wso2.com> wrote: > >> Thanks Owen. Will do it >> >> On Wed, Nov 4, 2015 at 5:22 PM, Sean Owen <so...@cloudera.com> wrote: >> >>> I'm pretty sure that a

Re: PMML version in MLLib

2015-11-04 Thread Fazlan Nazeem
all the output. > > On Wed, Nov 4, 2015 at 11:42 AM, Fazlan Nazeem <fazl...@wso2.com> wrote: > > [adding dev] > > > > On Wed, Nov 4, 2015 at 2:27 PM, Fazlan Nazeem <fazl...@wso2.com> wrote: > >> > >> I just went through all specifications, and they

Re: PMML export for LinearRegressionModel

2015-10-18 Thread Fazlan Nazeem
bringing this up! We need to add PMML export methods to the > spark.ml API. I just made a JIRA for tracking that: > https://issues.apache.org/jira/browse/SPARK-11171 > > Joseph > > On Thu, Oct 15, 2015 at 2:58 AM, Fazlan Nazeem <fazl...@wso2.com> wrote: > >

Re: PMML export for LinearRegressionModel

2015-10-15 Thread Fazlan Nazeem
essionModel has this trait, you should be able to call * > *LinearRegressionModel#toPMML* > > On Thu, Oct 15, 2015 at 5:25 PM, Fazlan Nazeem <fazl...@wso2.com> wrote: > >> Hi >> >> I am trying to export a LinearRegressionModel in PMML format. According >&

PMML export for LinearRegressionModel

2015-10-15 Thread Fazlan Nazeem
although LogisticRegressionModel, ReidgeRegressionModel,SVMModel etc has toPMML method. Can someone explain what is the issue here? -- Thanks & Regards, Fazlan Nazeem *Software Engineer* *WSO2 Inc* Mobile : +94772338839 <%2B94%20%280%29%20773%20451194> fazl...@wso2.com

Re: PMML export for LinearRegressionModel

2015-10-15 Thread Fazlan Nazeem
Ok It turns out I was using the wrong LinearRegressionModel which was in package org.apache.spark.ml.regression;. On Thu, Oct 15, 2015 at 3:23 PM, Fazlan Nazeem <fazl...@wso2.com> wrote: > This is the API doc for LinearRegressionModel. It does not implement > PMMLExportab