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
- sc
pyspark.SparkContext
Spark context used for loading model files.
- pathstr
Path specifying the directory to which the model was saved.
- sc
- Returns
- object
model instance
-
classmethod