public class PCA extends Estimator<PCAModel>
Modifier and Type | Method and Description |
---|---|
PCA |
copy(ParamMap extra)
Creates a copy of this instance with the same UID and some extra params.
|
PCAModel |
fit(DataFrame dataset)
Computes a
PCAModel that contains the principal components of the input vectors. |
int |
getK() |
IntParam |
k()
The number of principal components.
|
static PCA |
load(java.lang.String path) |
PCA |
setInputCol(java.lang.String value) |
PCA |
setK(int value) |
PCA |
setOutputCol(java.lang.String value) |
StructType |
transformSchema(StructType schema)
:: DeveloperApi ::
|
java.lang.String |
uid()
An immutable unique ID for the object and its derivatives.
|
transformSchema
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn, validateParams
toString
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public static PCA load(java.lang.String path)
public java.lang.String uid()
Identifiable
uid
in interface Identifiable
public PCA setInputCol(java.lang.String value)
public PCA setOutputCol(java.lang.String value)
public PCA setK(int value)
public PCAModel fit(DataFrame dataset)
PCAModel
that contains the principal components of the input vectors.public StructType transformSchema(StructType schema)
PipelineStage
Derives the output schema from the input schema.
transformSchema
in class PipelineStage
schema
- (undocumented)public PCA copy(ParamMap extra)
Params
public IntParam k()
public int getK()