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
- 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,- TargetEncoderModel,- TrainValidationSplitModel,- UnivariateFeatureSelectorModel,- VarianceThresholdSelectorModel,- VectorIndexerModel,- Word2VecModel
A fitted model, i.e., a 
Transformer produced by an Estimator.
 - See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.spark.internal.Loggingorg.apache.spark.internal.Logging.LogStringContext, org.apache.spark.internal.Logging.SparkShellLoggingFilter
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.spark.ml.Transformertransform, transform, transform, transformMethods inherited from class org.apache.spark.ml.PipelineStageparams, transformSchemaMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.ml.util.IdentifiabletoString, uidMethods inherited from interface org.apache.spark.internal.LogginginitializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, log, logBasedOnLevel, logDebug, logDebug, logDebug, logDebug, logError, logError, logError, logError, logInfo, logInfo, logInfo, logInfo, logName, LogStringContext, logTrace, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, logWarning, MDC, org$apache$spark$internal$Logging$$log_, org$apache$spark$internal$Logging$$log__$eq, withLogContextMethods inherited from interface org.apache.spark.ml.param.Paramsclear, copyValues, defaultCopy, estimateMatadataSize, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, onParamChange, set, set, set, setDefault, setDefault, shouldOwn
- 
Constructor Details- 
Modelpublic Model()
 
- 
- 
Method Details- 
copyDescription copied from interface:ParamsCreates 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:
- copyin interface- Params
- Specified by:
- copyin class- Transformer
- Parameters:
- extra- (undocumented)
- Returns:
- (undocumented)
 
- 
hasParentpublic boolean hasParent()Indicates whether thisModelhas a corresponding parent.
- 
parentThe parent estimator that produced this model.- Returns:
- (undocumented)
- Note:
- For ensembles' component Models, this value can be null.
 
- 
setParentSets the parent of this model (Java API).- Parameters:
- parent- (undocumented)
- Returns:
- (undocumented)
 
 
-