MLReader#

class pyspark.ml.util.MLReader[source]#

Utility class that can load ML instances.

New in version 2.0.0.

Methods

load(path)

Load the ML instance from the input path.

session(sparkSession)

Sets the Spark Session to use for saving/loading.

Attributes

sc

Returns the underlying SparkContext.

sparkSession

Returns the user-specified Spark Session or the default.

Methods Documentation

load(path)[source]#

Load the ML instance from the input path.

session(sparkSession)#

Sets the Spark Session to use for saving/loading.

Attributes Documentation

sc#

Returns the underlying SparkContext.

sparkSession#

Returns the user-specified Spark Session or the default.