A simple ZCAWhitening class. More...
Public Member Functions | |
ZCAWhitening (double eps=0.00005) | |
A constructor to set the regularization parameter. More... | |
const arma::vec & | EigenValues () const |
Get the eigenvalues vector. More... | |
const arma::mat & | EigenVectors () const |
Get the eigenvector. More... | |
double | Epsilon () const |
Get the regularization parameter. More... | |
template < typename MatType > | |
void | Fit (const MatType &input) |
Function to fit features, to find out the min max and scale. More... | |
template < typename MatType > | |
void | InverseTransform (const MatType &input, MatType &output) |
Function to retrieve original dataset. More... | |
const arma::vec & | ItemMean () const |
Get the mean row vector. More... | |
template < typename Archive > | |
void | serialize (Archive &ar, const uint32_t) |
template < typename MatType > | |
void | Transform (const MatType &input, MatType &output) |
Function for ZCA whitening. More... | |
A simple ZCAWhitening class.
Whitens a matrix using the eigendecomposition of the covariance matrix. Whitening means the covariance matrix of the result is the identity matrix.
For whitening related formula and more info, check the link below. http://ufldl.stanford.edu/tutorial/unsupervised/PCAWhitening/
Definition at line 47 of file zca_whitening.hpp.
|
inline |
A constructor to set the regularization parameter.
eps | Regularization parameter. |
Definition at line 55 of file zca_whitening.hpp.
|
inline |
Get the eigenvalues vector.
Definition at line 98 of file zca_whitening.hpp.
References PCAWhitening::EigenValues().
|
inline |
Get the eigenvector.
Definition at line 100 of file zca_whitening.hpp.
References PCAWhitening::EigenVectors().
|
inline |
Get the regularization parameter.
Definition at line 102 of file zca_whitening.hpp.
References PCAWhitening::Epsilon().
|
inline |
Function to fit features, to find out the min max and scale.
input | Dataset to fit. |
Definition at line 63 of file zca_whitening.hpp.
References PCAWhitening::Fit().
|
inline |
Function to retrieve original dataset.
input | Scaled dataset. |
output | Output matrix with original Dataset. |
Definition at line 88 of file zca_whitening.hpp.
References PCAWhitening::EigenValues(), PCAWhitening::EigenVectors(), and PCAWhitening::ItemMean().
|
inline |
Get the mean row vector.
Definition at line 96 of file zca_whitening.hpp.
References PCAWhitening::ItemMean().
|
inline |
Definition at line 105 of file zca_whitening.hpp.
|
inline |
Function for ZCA whitening.
input | Dataset to scale features. |
output | Output matrix with whitened features. |
Definition at line 75 of file zca_whitening.hpp.
References PCAWhitening::EigenVectors(), and PCAWhitening::Transform().