MLWritable (Spark 3.5.5 JavaDoc) (original) (raw)
- All Known Subinterfaces:
DefaultParamsWritable, GeneralMLWritable
All Known Implementing Classes:
AFTSurvivalRegression, AFTSurvivalRegressionModel, ALS, ALSModel, Binarizer, BinaryClassificationEvaluator, BisectingKMeans, BisectingKMeansModel, BucketedRandomProjectionLSH, BucketedRandomProjectionLSHModel, Bucketizer, ChiSqSelector, ChiSqSelectorModel, ClusteringEvaluator, ColumnPruner, CountVectorizer, CountVectorizerModel, CrossValidator, CrossValidatorModel, DCT, DecisionTreeClassificationModel, DecisionTreeClassifier, DecisionTreeRegressionModel, DecisionTreeRegressor, DistributedLDAModel, ElementwiseProduct, FeatureHasher, FMClassificationModel, FMClassifier, FMRegressionModel, FMRegressor, FPGrowth, FPGrowthModel, GaussianMixture, GaussianMixtureModel, GBTClassificationModel, GBTClassifier, GBTRegressionModel, GBTRegressor, GeneralizedLinearRegression, GeneralizedLinearRegressionModel, HashingTF, IDF, IDFModel, Imputer, ImputerModel, IndexToString, Interaction, IsotonicRegression, IsotonicRegressionModel, KMeans, KMeansModel, LDA, LDAModel, LinearRegression, LinearRegressionModel, LinearSVC, LinearSVCModel, LocalLDAModel, LogisticRegression, LogisticRegressionModel, MaxAbsScaler, MaxAbsScalerModel, MinHashLSH, MinHashLSHModel, MinMaxScaler, MinMaxScalerModel, MulticlassClassificationEvaluator, MultilabelClassificationEvaluator, MultilayerPerceptronClassificationModel, MultilayerPerceptronClassifier, NaiveBayes, NaiveBayesModel, NGram, Normalizer, OneHotEncoder, OneHotEncoderModel, OneVsRest, OneVsRestModel, PCA, PCAModel, Pipeline, PipelineModel, PolynomialExpansion, PowerIterationClustering, QuantileDiscretizer, RandomForestClassificationModel, RandomForestClassifier, RandomForestRegressionModel, RandomForestRegressor, RankingEvaluator, RegexTokenizer, RegressionEvaluator, RFormula, RFormulaModel, RobustScaler, RobustScalerModel, SQLTransformer, StandardScaler, StandardScalerModel, StopWordsRemover, StringIndexer, StringIndexerModel, Tokenizer, TrainValidationSplit, TrainValidationSplitModel, UnivariateFeatureSelector, UnivariateFeatureSelectorModel, VarianceThresholdSelector, VarianceThresholdSelectorModel, VectorAssembler, VectorAttributeRewriter, VectorIndexer, VectorIndexerModel, VectorSizeHint, VectorSlicer, Word2Vec, Word2VecModel
public interface MLWritable
Trait for classes that provide MLWriter
.
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type Method and Description void save(String path) Saves this ML instance to the input path, a shortcut of write.save(path). MLWriter write() Returns an MLWriter instance for this ML instance. Method Detail
* #### save void save(String path) throws java.io.IOException Saves this ML instance to the input path, a shortcut of `write.save(path)`. Parameters: `path` \- (undocumented) Throws: `java.io.IOException` * #### write [MLWriter](../../../../../org/apache/spark/ml/util/MLWriter.html "class in org.apache.spark.ml.util") write() Returns an `MLWriter` instance for this ML instance. Returns: (undocumented)