Package org.jpmml.sparkml
Class PipelineModelUtil
- java.lang.Object
-
- org.jpmml.sparkml.PipelineModelUtil
-
public class PipelineModelUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddStage(org.apache.spark.ml.PipelineModel pipelineModel, int index, org.apache.spark.ml.Transformer transformer)static org.apache.spark.ml.PipelineModelload(org.apache.spark.sql.SparkSession sparkSession, File dir)static org.apache.spark.ml.PipelineModelloadZip(org.apache.spark.sql.SparkSession sparkSession, File file)static org.apache.spark.ml.TransformerremoveStage(org.apache.spark.ml.PipelineModel pipelineModel, int index)static voidstore(org.apache.spark.ml.PipelineModel pipelineModel, File dir)static voidstoreZip(org.apache.spark.ml.PipelineModel pipelineModel, File file)
-
-
-
Method Detail
-
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
-
-