|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Saveable
:: DeveloperApi ::
Trait for models and transformers which may be saved as files. This should be inherited by the class which implements model instances.
Method Summary | |
---|---|
String |
formatVersion()
Current version of model save/load format. |
void |
save(SparkContext sc,
String path)
Save this model to the given path. |
Method Detail |
---|
void save(SparkContext sc, String 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
.
sc
- Spark context used to save model data.path
- Path specifying the directory in which to save this model.
If the directory already exists, this method throws an exception.String formatVersion()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |