Loader

class pyspark.mllib.util.Loader[source]

Mixin for classes which can load saved models from files.

New in version 1.3.0.

Methods

load(sc, path)

Load a model from the given path.

Methods Documentation

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

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