Loader¶
-
class
pyspark.mllib.util.
Loader
[source]¶ Mixin for classes which can load saved models from files.
New in version 1.3.0.
Methods
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 – Spark context used for loading model files.
path – Path specifying the directory to which the model was saved.
- Returns
model instance
-
classmethod