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
-
Method Summary
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
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:BaseReadWrite
Sets the Spark Session to use for saving/loading.- Specified by:
session
in interfaceBaseReadWrite
- Parameters:
sparkSession
- (undocumented)- Returns:
- (undocumented)
-