Saveable (Spark 4.0.0 JavaDoc) (original) (raw)
All Known Implementing Classes:
[BisectingKMeansModel](../clustering/BisectingKMeansModel.html "class in org.apache.spark.mllib.clustering")
, [ChiSqSelectorModel](../feature/ChiSqSelectorModel.html "class in org.apache.spark.mllib.feature")
, [DecisionTreeModel](../tree/model/DecisionTreeModel.html "class in org.apache.spark.mllib.tree.model")
, [DistributedLDAModel](../clustering/DistributedLDAModel.html "class in org.apache.spark.mllib.clustering")
, [FPGrowthModel](../fpm/FPGrowthModel.html "class in org.apache.spark.mllib.fpm")
, [GaussianMixtureModel](../clustering/GaussianMixtureModel.html "class in org.apache.spark.mllib.clustering")
, [GradientBoostedTreesModel](../tree/model/GradientBoostedTreesModel.html "class in org.apache.spark.mllib.tree.model")
, [IsotonicRegressionModel](../regression/IsotonicRegressionModel.html "class in org.apache.spark.mllib.regression")
, [KMeansModel](../clustering/KMeansModel.html "class in org.apache.spark.mllib.clustering")
, [LassoModel](../regression/LassoModel.html "class in org.apache.spark.mllib.regression")
, [LDAModel](../clustering/LDAModel.html "class in org.apache.spark.mllib.clustering")
, [LinearRegressionModel](../regression/LinearRegressionModel.html "class in org.apache.spark.mllib.regression")
, [LocalLDAModel](../clustering/LocalLDAModel.html "class in org.apache.spark.mllib.clustering")
, [LogisticRegressionModel](../classification/LogisticRegressionModel.html "class in org.apache.spark.mllib.classification")
, [MatrixFactorizationModel](../recommendation/MatrixFactorizationModel.html "class in org.apache.spark.mllib.recommendation")
, [NaiveBayesModel](../classification/NaiveBayesModel.html "class in org.apache.spark.mllib.classification")
, [PowerIterationClusteringModel](../clustering/PowerIterationClusteringModel.html "class in org.apache.spark.mllib.clustering")
, [PrefixSpanModel](../fpm/PrefixSpanModel.html "class in org.apache.spark.mllib.fpm")
, [RandomForestModel](../tree/model/RandomForestModel.html "class in org.apache.spark.mllib.tree.model")
, [RidgeRegressionModel](../regression/RidgeRegressionModel.html "class in org.apache.spark.mllib.regression")
, [StreamingKMeansModel](../clustering/StreamingKMeansModel.html "class in org.apache.spark.mllib.clustering")
, [SVMModel](../classification/SVMModel.html "class in org.apache.spark.mllib.classification")
, [Word2VecModel](../feature/Word2VecModel.html "class in org.apache.spark.mllib.feature")
public interface Saveable
Trait for models and transformers which may be saved as files. This should be inherited by the class which implements model instances.
Method Summary
void
Save this model to the given path.
Method Details
save
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 usingLoader.load
.
Parameters:
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.