Class PipelineModelUtil


  • public class PipelineModelUtil
    extends Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addStage​(org.apache.spark.ml.PipelineModel pipelineModel, int index, org.apache.spark.ml.Transformer transformer)  
      static org.apache.spark.ml.PipelineModel load​(org.apache.spark.sql.SparkSession sparkSession, File dir)  
      static org.apache.spark.ml.PipelineModel loadZip​(org.apache.spark.sql.SparkSession sparkSession, File file)  
      static org.apache.spark.ml.Transformer removeStage​(org.apache.spark.ml.PipelineModel pipelineModel, int index)  
      static void store​(org.apache.spark.ml.PipelineModel pipelineModel, File dir)  
      static void storeZip​(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