Train a linear model to whiten the data. More...
#include <shark/Algorithms/Trainers/NormalizeComponentsWhitening.h>
Inheritance diagram for shark::NormalizeComponentsWhitening:Public Member Functions | |
| NormalizeComponentsWhitening (double targetVariance=1.0) | |
| std::string | name () const |
| From INameable: return the class name. More... | |
| void | train (ModelType &model, UnlabeledData< RealVector > const &input) |
Public Member Functions inherited from shark::AbstractUnsupervisedTrainer< LinearModel< RealVector > > | |
| virtual void | train (ModelType &model, const UnlabeledData< InputType > &inputset)=0 |
| Core of the Trainer interface. More... | |
Public Member Functions inherited from shark::INameable | |
| virtual | ~INameable () |
Public Member Functions inherited from shark::ISerializable | |
| virtual | ~ISerializable () |
| Virtual d'tor. More... | |
| virtual void | read (InArchive &archive) |
| Read the component from the supplied archive. More... | |
| virtual void | write (OutArchive &archive) const |
| Write the component to the supplied archive. More... | |
| void | load (InArchive &archive, unsigned int version) |
| Versioned loading of components, calls read(...). More... | |
| void | save (OutArchive &archive, unsigned int version) const |
| Versioned storing of components, calls write(...). More... | |
| BOOST_SERIALIZATION_SPLIT_MEMBER () | |
Public Attributes | |
| double | m_targetVariance |
Additional Inherited Members | |
Public Types inherited from shark::AbstractUnsupervisedTrainer< LinearModel< RealVector > > | |
| typedef LinearModel< RealVector > | ModelType |
| typedef LinearModel< RealVector > ::InputType | InputType |
Train a linear model to whiten the data.
Definition at line 50 of file NormalizeComponentsWhitening.h.
|
inline |
Definition at line 56 of file NormalizeComponentsWhitening.h.
References SHARK_CHECK.
|
inlinevirtual |
From INameable: return the class name.
Reimplemented from shark::INameable.
Definition at line 62 of file NormalizeComponentsWhitening.h.
|
inline |
Definition at line 65 of file NormalizeComponentsWhitening.h.
References shark::blas::columns(), shark::covariance(), shark::dataDimension(), shark::mean(), shark::meanvar(), shark::blas::noalias(), shark::Data< Type >::numberOfElements(), shark::blas::pivotingCholeskyDecompositionInPlace(), shark::blas::prod(), shark::LinearModel< InputType >::setStructure(), SHARK_CHECK, SIZE_CHECK, shark::blas::swap_full_inverted(), shark::blas::symm_prod(), and shark::blas::trans().
Referenced by main().
| double shark::NormalizeComponentsWhitening::m_targetVariance |
Definition at line 55 of file NormalizeComponentsWhitening.h.