Hi, I confirm the models are exported for PMML version 4.2, in fact you can see in the generated xml PMML xmlns="http://www.dmg.org/PMML-4_2" This is the default version when using https://github.com/jpmml/jpmml-model/tree/1.1.X.
I didn't realize the attribute version of the PMML root element was required, this can be easily added. Please, as Owen suggested, add a PR and link it to https://issues.apache.org/jira/browse/SPARK-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 attribute is required. I am not sure what PMML >> version the code has been written for but would assume 4.2.1. Feel >> free to open a PR to add this version to 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 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 >> generating one >> >> without it. >> >> >> >> On Wed, Nov 4, 2015 at 2:17 PM, Stefano Baghino >> >> <stefano.bagh...@radicalbit.io> wrote: >> >>> >> >>> I used KNIME, which internally uses the org.dmg.pmml library. >> >>> >> >>> On Wed, Nov 4, 2015 at 9:45 AM, Fazlan Nazeem <fazl...@wso2.com> >> wrote: >> >>>> >> >>>> Hi Stefano, >> >>>> >> >>>> Although the intention for my question wasn't as you expected, what >> you >> >>>> say makes sense. The standard[1] for PMML 4.1 specifies that "For >> PMML 4.1 >> >>>> the attribute version must have the value 4.1". I'm not sure whether >> that >> >>>> means that other PMML versions do not need that attribute to be set >> >>>> explicitly. I hope someone would answer this. >> >>>> >> >>>> What was the tool you used to load the PMML? >> >>>> >> >>>> [1] http://dmg.org/pmml/v4-1/GeneralStructure.html >> >>>> >> > > > > -- > Thanks & Regards, > > Fazlan Nazeem > > *Software Engineer* > > *WSO2 Inc* > Mobile : +94772338839 > <%2B94%20%280%29%20773%20451194> > fazl...@wso2.com >