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
Post a Comment