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
ou should be able to call * > *LinearRegressionModel#toPMML* > > On Thu, Oct 15, 2015 at 5:25 PM, Fazlan Nazeem wrote: > >> Hi >> >> I am trying to export a LinearRegressionModel in PMML format. According >> to the following resource[1] PMML export is supported

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 wrote: > This is the API doc for LinearRegressionModel. It does not implement > PMMLExportable > > https://spark.apa

Re: PMML export for LinearRegressionModel

2015-10-18 Thread Fazlan Nazeem
d 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 wrote: > >> Ok It turns out I was using the wrong LinearRegres

Re: PMML version in MLLib

2015-11-04 Thread Fazlan Nazeem
[adding dev] On Wed, Nov 4, 2015 at 2:27 PM, Fazlan Nazeem wrote: > I just went through all specifications, and they expect the version > attribute. This should be addressed very soon because if we cannot use the > PMML model without the version attribute, there is no use of gener

Re: PMML version in MLLib

2015-11-04 Thread Fazlan Nazeem
On Wed, Nov 4, 2015 at 11:42 AM, Fazlan Nazeem wrote: > > [adding dev] > > > > On Wed, Nov 4, 2015 at 2:27 PM, Fazlan Nazeem wrote: > >> > >> I just went through all specifications, and they expect the version > >> attribute. This should be addressed

Re: PMML version in MLLib

2015-11-08 Thread Fazlan Nazeem
t; Thanks, > Vincenzo > > On Wed, Nov 4, 2015 at 12:14 PM, Fazlan Nazeem wrote: > >> Thanks Owen. Will do it >> >> On Wed, Nov 4, 2015 at 5:22 PM, Sean Owen wrote: >> >>> I'm pretty sure that attribute is required. I am not sure what PMML >>> ver

Re: Problem in running MLlib SVM

2015-11-30 Thread Fazlan Nazeem
score >=0 && label == 1) || (score <0 && label == 0)) >>>>{ >>>>return 1; //correct classiciation >>>>} >>>>else >>>> return 0; >>>> >>>> } >>>>} >>>> ); >>>> // sum up all values in the rdd to get the number of correctly >>>> classified examples >>>> int sum=classification.reduce(new Function2>>> Integer>() >>>> { >>>> public Integer call(Integer arg0, Integer arg1) >>>> throws Exception { >>>> return arg0+arg1; >>>> }}); >>>> >>>> //compute accuracy as the percentage of the correctly classified >>>> examples >>>> double accuracy=((double)sum)/((double)classification.count()); >>>> System.out.println("Accuracy = " + accuracy); >>>> >>>> } >>>> } >>>> ); >>>> } >>>> } >>>> >>> >>> >>> >>> -- >>> Best Regards >>> >>> Jeff Zhang >>> >> >> > > > -- > Best Regards > > Jeff Zhang > -- Thanks & Regards, Fazlan Nazeem *Software Engineer* *WSO2 Inc* Mobile : +94772338839 <%2B94%20%280%29%20773%20451194> fazl...@wso2.com