Saveable¶
-
class
pyspark.mllib.util.
Saveable
¶ Mixin for models and transformers which may be saved as files.
Methods
save
(sc, path)Save this model to the given path.
Methods Documentation
-
save
(sc: pyspark.context.SparkContext, path: str) → None¶ Save this model to the given path.
- This saves:
human-readable (JSON) model metadata to path/metadata/
Parquet formatted data to path/data/
The model may be loaded using
Loader.load()
.- Parameters
- sc
pyspark.SparkContext
Spark context used to save model data.
- pathstr
Path specifying the directory in which to save this model. If the directory already exists, this method throws an exception.
- sc
-