public class FastICA extends Object implements InvertibleTransform
Modifier and Type | Class and Description |
---|---|
static class |
FastICA.DefaultNegEntropyFunc
A set of default negative entropy functions as specified in the original
FastICA paper
|
static interface |
FastICA.NegEntropyFunc
The FastICA algorithm requires a function f(x) to be used iteratively in
the algorithm, but only makes use of the first and second derivatives of
the algorithm.
|
Constructor and Description |
---|
FastICA()
Creates a new FastICA transform that will attempt to fit 10 components.
|
FastICA(DataSet data,
int C)
Creates a new FastICA transform
|
FastICA(DataSet data,
int C,
FastICA.NegEntropyFunc G,
boolean preWhitened)
Creates a new FastICA transform
|
FastICA(FastICA toCopy)
Copy constructor
|
FastICA(int C)
Creates a new FastICA transform
|
FastICA(int C,
FastICA.NegEntropyFunc G,
boolean preWhitened)
Creates a new FastICA transform
|
Modifier and Type | Method and Description |
---|---|
FastICA |
clone() |
void |
fit(DataSet data)
Fits this transform to the given dataset.
|
int |
getC() |
FastICA.NegEntropyFunc |
getNegEntropyFunction() |
DataPoint |
inverse(DataPoint dp)
Applies the inverse or "reverse" transform to approximately undo the
effect of
DataTransform.transform(jsat.classifiers.DataPoint) to recover an
approximation of the original data point. |
boolean |
isPreWhitened() |
void |
setC(int C)
Sets the number of base components to learn
|
void |
setNegEntropyFunction(FastICA.NegEntropyFunc G)
Sets the Negative Entropy function used to infer the base components.
|
void |
setPreWhitened(boolean preWhitened)
Controls where or not the implementation assumes the input data is
already whitened.
|
DataPoint |
transform(DataPoint dp)
Returns a new data point that is a transformation of the original data
point.
|
public FastICA()
public FastICA(int C)
C
- the number of base components to assume and try to discoverpublic FastICA(DataSet data, int C)
data
- the data set to transformC
- the number of base components to assume and try to discoverpublic FastICA(int C, FastICA.NegEntropyFunc G, boolean preWhitened)
data
- the data set to transformC
- the number of base components to assume and try to discoverG
- the Negative Entropy function to usepreWhitened
- true
to assume the data has already been
whitened before being given to the transform, false
and the
FastICA implementation will perform its own whitening.public FastICA(DataSet data, int C, FastICA.NegEntropyFunc G, boolean preWhitened)
data
- the data set to transformC
- the number of base components to assume and try to discoverG
- the Negative Entropy function to usepreWhitened
- true
to assume the data has already been
whitened before being given to the transform, false
and the
FastICA implementation will perform its own whitening.public FastICA(FastICA toCopy)
toCopy
- the object to copypublic void fit(DataSet data)
DataTransform
FailedToFitException
exception may be
thrown.fit
in interface DataTransform
data
- the dataset to fir this transform topublic void setC(int C)
C
- the number of base components to assume and try to discoverpublic int getC()
public void setNegEntropyFunction(FastICA.NegEntropyFunc G)
G
- the Negative Entropy function to usepublic FastICA.NegEntropyFunc getNegEntropyFunction()
public void setPreWhitened(boolean preWhitened)
preWhitened
- true
to assume the data has already been
whitened, false
for this object to do its own whiteningpublic boolean isPreWhitened()
true
if this object will assume the data has already been
whitened, false
for this object to do its own whiteningpublic DataPoint transform(DataPoint dp)
DataTransform
transform
in interface DataTransform
dp
- the data point to apply a transformation topublic DataPoint inverse(DataPoint dp)
InvertibleTransform
DataTransform.transform(jsat.classifiers.DataPoint)
to recover an
approximation of the original data point.inverse
in interface InvertibleTransform
dp
- the transformed data pointpublic FastICA clone()
clone
in interface DataTransform
clone
in interface InvertibleTransform
clone
in class Object
Copyright © 2017. All rights reserved.