Package org.jpmml.sparkml
Class PipelineModelUtil
java.lang.Object
org.jpmml.sparkml.PipelineModelUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddStage(org.apache.spark.ml.PipelineModel pipelineModel, int index, org.apache.spark.ml.Transformer transformer) static org.apache.spark.ml.PipelineModelstatic org.apache.spark.ml.PipelineModelstatic org.apache.spark.ml.TransformerremoveStage(org.apache.spark.ml.PipelineModel pipelineModel, int index) static voidstatic void
-
Method Details
-
addStage
public static void addStage(org.apache.spark.ml.PipelineModel pipelineModel, int index, org.apache.spark.ml.Transformer transformer) -
removeStage
public static org.apache.spark.ml.Transformer removeStage(org.apache.spark.ml.PipelineModel pipelineModel, int index) -
load
public static org.apache.spark.ml.PipelineModel load(org.apache.spark.sql.SparkSession sparkSession, File dir) throws IOException - Throws:
IOException
-
loadZip
public static org.apache.spark.ml.PipelineModel loadZip(org.apache.spark.sql.SparkSession sparkSession, File file) throws IOException - Throws:
IOException
-
store
public static void store(org.apache.spark.ml.PipelineModel pipelineModel, File dir) throws IOException - Throws:
IOException
-
storeZip
public static void storeZip(org.apache.spark.ml.PipelineModel pipelineModel, File file) throws IOException - Throws:
IOException
-