Thanks for 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: > 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 >> PMMLExportable >> >> https://spark.apache.org/docs/latest/api/java/index.html >> >> On Thu, Oct 15, 2015 at 3:11 PM, canan chen <ccn...@gmail.com> wrote: >> >>> The method toPMML is in trait PMMLExportable >>> >>> *LinearRegressionModel 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 >>>> to the following resource[1] PMML export is supported for >>>> LinearRegressionModel. >>>> >>>> [1] https://spark.apache.org/docs/latest/mllib-pmml-model-export.html >>>> >>>> But there is *no* *toPMML* method in *LinearRegressionModel* class >>>> 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 >>>> >>> >>> >> >> >> -- >> Thanks & Regards, >> >> Fazlan Nazeem >> >> *Software Engineer* >> >> *WSO2 Inc* >> Mobile : +94772338839 >> <%2B94%20%280%29%20773%20451194> >> fazl...@wso2.com >> > > > > -- > Thanks & Regards, > > Fazlan Nazeem > > *Software Engineer* > > *WSO2 Inc* > Mobile : +94772338839 > <%2B94%20%280%29%20773%20451194> > fazl...@wso2.com >