Loader

class pyspark.mllib.util.Loader

Mixin for classes which can load saved models from files.

Methods

load(sc, path)

Load a model from the given path.

Methods Documentation

classmethod load(sc: pyspark.context.SparkContext, path: str) → L

Load a model from the given path. The model should have been saved using Saveable.save().

Parameters
scpyspark.SparkContext

Spark context used for loading model files.

pathstr

Path specifying the directory to which the model was saved.

Returns
object

model instance