mlpack
2.2.5

This class implements a method titled 'Alternating Least Squares' described in the following paper: More...
Public Member Functions  
NMFALSUpdate ()  
Empty constructor required for the UpdateRule template. More...  
template < typename MatType >  
void  Initialize (const MatType &, const size_t) 
Set initial values for the factorization. More...  
template < typename Archive >  
void  Serialize (Archive &, const unsigned int) 
Serialize the object (in this case, there is nothing to serialize). More...  
Static Public Member Functions  
template < typename MatType >  
static void  HUpdate (const MatType &V, const arma::mat &W, arma::mat &H) 
The update rule for the encoding matrix H. More...  
template < typename MatType >  
static void  WUpdate (const MatType &V, arma::mat &W, const arma::mat &H) 
The update rule for the basis matrix W. More...  
Detailed Description
This class implements a method titled 'Alternating Least Squares' described in the following paper:
It uses the least squares projection formula to reduce the error value of by alternately calculating W and H respectively while holding the other matrix constant.
Definition at line 41 of file nmf_als.hpp.
Constructor & Destructor Documentation
◆ NMFALSUpdate()

inline 
Empty constructor required for the UpdateRule template.
Definition at line 45 of file nmf_als.hpp.
Member Function Documentation
◆ HUpdate()

inlinestatic 
The update rule for the encoding matrix H.
The formula used is
The function takes in all the matrices and only changes the value of the H matrix.
 Parameters

V Input matrix to be factorized. W Basis matrix. H Encoding matrix to be updated.
Definition at line 105 of file nmf_als.hpp.
◆ Initialize()

inline 
Set initial values for the factorization.
In this case, we don't need to set anything.
Definition at line 52 of file nmf_als.hpp.
◆ Serialize()

inline 
Serialize the object (in this case, there is nothing to serialize).
Definition at line 123 of file nmf_als.hpp.
◆ WUpdate()

inlinestatic 
The update rule for the basis matrix W.
The formula used isa
The function takes in all the matrices and only changes the value of the W matrix.
 Parameters

V Input matrix to be factorized. W Basis matrix to be updated. H Encoding matrix.
Definition at line 72 of file nmf_als.hpp.
The documentation for this class was generated from the following file:
 src/mlpack/methods/amf/update_rules/nmf_als.hpp
Generated by 1.8.13