Class MLReader<T>

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

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

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract T
    load(String path)
    Loads the ML component from the input path.
    session(SparkSession sparkSession)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.spark.ml.util.BaseReadWrite

    org$apache$spark$ml$util$BaseReadWrite$$optionSparkSession, org$apache$spark$ml$util$BaseReadWrite$$optionSparkSession_$eq, sc, sparkSession, sqlContext
  • 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)
      Specified by:
      session in interface org.apache.spark.ml.util.BaseReadWrite