You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using "jpmml-sparkml, version 1.2.4" to generate pmml models in spark (using Scala) and saving that output to local file system, but can't figure out how to set the following properties
Apache Spark ML decision tree models do not support such "execution flow" customizations. Therefore, it is impossible to generate the requested PMML markup automatically.
Possible workaround:
Generate a "raw" PMML class model object by invoking ConverterUtil#toPMML(StructType, PipelineModel).
Apply a (list of-) post-processing Visitor(s) to it.
Save the "post-processed" PMML class model object to a file.
In your case, the Visitor needs to be modifying TreeModel elements (of the top-level MiningModel element). Here's a starting point:
Hi,
I am using "jpmml-sparkml, version 1.2.4" to generate pmml models in spark (using Scala) and saving that output to local file system, but can't figure out how to set the following properties
<xs:attribute name="missingValueStrategy" type="MISSING-VALUE-STRATEGY" default="none"/>
<xs:attribute name="missingValuePenalty" type="PROB-NUMBER" default="1.0"/>
<xs:attribute name="noTrueChildStrategy" type="NO-TRUE-CHILD-STRATEGY" default="returnNullPrediction"/>
I have searched online but haven't found any clues.
Really appreciate the help..
Thanks,
Raj
The text was updated successfully, but these errors were encountered: