java - Spark ml and PMML export -


i know it's possible export models pmml spark-mllib, spark-ml?

is possible convert linearregressionmodel org.apache.spark.ml.regression linearregressionmodel org.apache.spark.mllib.regression able invoke topmml() method?

you can convert spark ml pipelines pmml using jpmml-sparkml library:

structtype schema = dataframe.schema() pipelinemodel pipelinemodel = pipeline.fit(dataframe); org.dmg.pmml.pmml pmml = org.jpmml.sparkml.converterutil.topmml(schema, pipelinemodel); jaxbutil.marshalpmml(pmml, new streamresult(system.out)); 

Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -