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
-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
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
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:
>
>
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
>&
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
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