Re: PMML export for LinearRegressionModel

2015-10-18 Thread Fazlan Nazeem
Hi Joseph, That's great. Also It would be great if spark extends the PMML support to models which are not PMML supported right now. e.g - Decision Tree - Random Forest - Naive Bayes On Sun, Oct 18, 2015 at 2:55 AM, Joseph Bradley wrote: > Thanks for bringing this up! We need to add

Re: PMML export for LinearRegressionModel

2015-10-17 Thread Joseph Bradley
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 wrote: > Ok It turns out I was using the wrong LinearRegressionMod

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.apache.org/docs/lat

Re: PMML export for LinearRegressionModel

2015-10-15 Thread Fazlan Nazeem
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 wrote: > The method toPMML is in trait PMMLExportable > > *LinearRegressionModel has this trait, you should be

Re: PMML export for LinearRegressionModel

2015-10-15 Thread canan chen
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 wrote: > Hi > > I am trying to export a LinearRegressionModel in PMML format. According to > the followi

PMML export for LinearRegressionModel

2015-10-15 Thread Fazlan Nazeem
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 alt