Package org.apache.spark.ml.util
Class MLReader<T>
Object
org.apache.spark.ml.util.MLReader<T>
- Type Parameters:
T- ML instance type
- All Implemented Interfaces:
BaseReadWrite
Abstract class for utility classes that can load ML instances.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.ml.util.BaseReadWrite
sc, sparkSession, sqlContext
-
Constructor Details
-
MLReader
public MLReader()
-
-
Method Details
-
load
Loads the ML component from the input path.- Parameters:
path- (undocumented)- Returns:
- (undocumented)
-
session
Description copied from interface:BaseReadWriteSets the Spark Session to use for saving/loading.- Specified by:
sessionin interfaceBaseReadWrite- Parameters:
sparkSession- (undocumented)- Returns:
- (undocumented)
-