public class WhitenedZCA extends WhitenedPCA implements InPlaceTransform
WhitenedPCA
, is the Whitened Zero Component Analysis.
Whitened ZCA can not project to a lower dimension, as it rotates the output
in the original dimension.dimensions, regularization, transform
Constructor and Description |
---|
WhitenedZCA()
Creates a new WhitenedZCA transform that uses up to 50 dimensions for the
transformed space.
|
WhitenedZCA(DataSet dataSet)
Creates a new Whitened ZCA transform from the given data.
|
WhitenedZCA(DataSet dataSet,
double regularization)
Creates a new Whitened ZCA transform from the given data.
|
WhitenedZCA(double regularization,
int dims)
Creates a new WhitenedZCA transform
|
WhitenedZCA(int dims)
Creates a new WhitenedZCA transform
|
Modifier and Type | Method and Description |
---|---|
void |
fit(DataSet dataSet)
Fits this transform to the given dataset.
|
void |
mutableTransform(DataPoint dp)
Mutates the given data point.
|
boolean |
mutatesNominal()
By default returns
false . |
protected void |
setUpTransform(SingularValueDecomposition svd)
Creates the
transform matrix to be used when
converting data points. |
clone, getDimensions, getRegularization, guessDimensions, setDimensions, setRegularization, transform
getParameter, getParameters
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, transform
public WhitenedZCA()
dims
- the number of dimensions to project down topublic WhitenedZCA(int dims)
dims
- the number of dimensions to project down topublic WhitenedZCA(double regularization, int dims)
regularization
- the amount of regularization to add, avoids
numerical instabilitydims
- the number of dimensions to project down topublic WhitenedZCA(DataSet dataSet, double regularization)
dataSet
- the data set to whitenregularization
- the amount of regularization to add, avoids
numerical instabilitypublic WhitenedZCA(DataSet dataSet)
dataSet
- the data set to whitenpublic void fit(DataSet dataSet)
DataTransform
FailedToFitException
exception may be
thrown.fit
in interface DataTransform
fit
in class WhitenedPCA
dataSet
- the dataset to fir this transform topublic void mutableTransform(DataPoint dp)
InPlaceTransform
DataTransform.transform(jsat.classifiers.DataPoint)
.mutableTransform
in interface InPlaceTransform
dp
- the data point to alterpublic boolean mutatesNominal()
InPlaceTransform
false
. Only returns true if this transform
will mutableTransform the nominal feature values of a data point.mutatesNominal
in interface InPlaceTransform
true
if nominal feature values are mutated, false
otherwise.protected void setUpTransform(SingularValueDecomposition svd)
WhitenedPCA
transform matrix
to be used when
converting data points. It is called in the constructor after all values
are set.setUpTransform
in class WhitenedPCA
svd
- the SVD of the covariance of the source data setCopyright © 2017. All rights reserved.