Class MLReader<T>

Object
org.apache.spark.ml.util.MLReader<T>
Type Parameters:
T - ML instance type
All Implemented Interfaces:
BaseReadWrite

public abstract class MLReader<T> extends Object implements BaseReadWrite
Abstract class for utility classes that can load ML instances.

  • Constructor Details

    • MLReader

      public MLReader()
  • Method Details

    • load

      public abstract T load(String path)
      Loads the ML component from the input path.
      Parameters:
      path - (undocumented)
      Returns:
      (undocumented)
    • session

      public MLReader<T> session(SparkSession sparkSession)
      Description copied from interface: BaseReadWrite
      Sets the Spark Session to use for saving/loading.
      Specified by:
      session in interface BaseReadWrite
      Parameters:
      sparkSession - (undocumented)
      Returns:
      (undocumented)