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, path)[source]¶ 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