Package org.apache.spark.ml
Class Model<M extends Model<M>>
Object
org.apache.spark.ml.PipelineStage
org.apache.spark.ml.Transformer
org.apache.spark.ml.Model<M>
- Type Parameters:
M
- model type
- All Implemented Interfaces:
Serializable
,org.apache.spark.internal.Logging
,Params
,Identifiable
,scala.Serializable
- Direct Known Subclasses:
ALSModel
,BisectingKMeansModel
,BucketedRandomProjectionLSHModel
,Bucketizer
,ChiSqSelectorModel
,CountVectorizerModel
,CrossValidatorModel
,FPGrowthModel
,GaussianMixtureModel
,IDFModel
,ImputerModel
,IsotonicRegressionModel
,KMeansModel
,LDAModel
,MaxAbsScalerModel
,MinHashLSHModel
,MinMaxScalerModel
,OneHotEncoderModel
,OneVsRestModel
,PCAModel
,PipelineModel
,PredictionModel
,RFormulaModel
,RobustScalerModel
,StandardScalerModel
,StringIndexerModel
,TrainValidationSplitModel
,UnivariateFeatureSelectorModel
,VarianceThresholdSelectorModel
,VectorIndexerModel
,Word2VecModel
A fitted model, i.e., a
Transformer
produced by an Estimator
.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.spark.internal.Logging
org.apache.spark.internal.Logging.SparkShellLoggingFilter
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.spark.ml.Transformer
transform, transform, transform, transform
Methods inherited from class org.apache.spark.ml.PipelineStage
params, transformSchema
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.spark.ml.util.Identifiable
toString, uid
Methods inherited from interface org.apache.spark.internal.Logging
initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning, org$apache$spark$internal$Logging$$log_, org$apache$spark$internal$Logging$$log__$eq
Methods inherited from interface org.apache.spark.ml.param.Params
clear, copyValues, defaultCopy, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, onParamChange, set, set, set, setDefault, setDefault, shouldOwn
-
Constructor Details
-
Model
public Model()
-
-
Method Details
-
copy
Description copied from interface:Params
Creates a copy of this instance with the same UID and some extra params. Subclasses should implement this method and set the return type properly. SeedefaultCopy()
.- Specified by:
copy
in interfaceParams
- Specified by:
copy
in classTransformer
- Parameters:
extra
- (undocumented)- Returns:
- (undocumented)
-
hasParent
public boolean hasParent()Indicates whether thisModel
has a corresponding parent. -
parent
The parent estimator that produced this model.- Returns:
- (undocumented)
- Note:
- For ensembles' component Models, this value can be null.
-
setParent
Sets the parent of this model (Java API).- Parameters:
parent
- (undocumented)- Returns:
- (undocumented)
-