DefaultParamsWritable (Spark 3.5.5 JavaDoc) (original) (raw)
- All Superinterfaces:
MLWritable
All Known Implementing Classes:
AFTSurvivalRegression, ALS, Binarizer, BinaryClassificationEvaluator, BisectingKMeans, BucketedRandomProjectionLSH, Bucketizer, ChiSqSelector, ClusteringEvaluator, CountVectorizer, DCT, DecisionTreeClassifier, DecisionTreeRegressor, ElementwiseProduct, FeatureHasher, FMClassifier, FMRegressor, FPGrowth, GaussianMixture, GBTClassifier, GBTRegressor, GeneralizedLinearRegression, HashingTF, IDF, Imputer, IndexToString, Interaction, IsotonicRegression, KMeans, LDA, LinearRegression, LinearSVC, LogisticRegression, MaxAbsScaler, MinHashLSH, MinMaxScaler, MulticlassClassificationEvaluator, MultilabelClassificationEvaluator, MultilayerPerceptronClassifier, NaiveBayes, NGram, Normalizer, OneHotEncoder, PCA, PolynomialExpansion, PowerIterationClustering, QuantileDiscretizer, RandomForestClassifier, RandomForestRegressor, RankingEvaluator, RegexTokenizer, RegressionEvaluator, RFormula, RobustScaler, SQLTransformer, StandardScaler, StopWordsRemover, StringIndexer, Tokenizer, UnivariateFeatureSelector, VarianceThresholdSelector, VectorAssembler, VectorIndexer, VectorSizeHint, VectorSlicer, Word2Vec
public interface DefaultParamsWritable
extends MLWritable
Helper trait for making simple Params
types writable. If a Params
class stores all data as Param values, then extending this trait will provide a default implementation of writing saved instances of the class. This only handles simple Param types; e.g., it will not handleDataset.
See Also:DefaultParamsReadable
, the counterpart to this trait
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type Method and Description MLWriter write() Returns an MLWriter instance for this ML instance. * ### Methods inherited from interface org.apache.spark.ml.util.[MLWritable](../../../../../org/apache/spark/ml/util/MLWritable.html "interface in org.apache.spark.ml.util") `[save](../../../../../org/apache/spark/ml/util/MLWritable.html#save-java.lang.String-)`
Method Detail
* #### write [MLWriter](../../../../../org/apache/spark/ml/util/MLWriter.html "class in org.apache.spark.ml.util") write() Description copied from interface: `[MLWritable](../../../../../org/apache/spark/ml/util/MLWritable.html#write--)` Returns an `MLWriter` instance for this ML instance. Specified by: `[write](../../../../../org/apache/spark/ml/util/MLWritable.html#write--)` in interface `[MLWritable](../../../../../org/apache/spark/ml/util/MLWritable.html "interface in org.apache.spark.ml.util")` Returns: (undocumented)