The alternating least square update rules of matrices w and h.
NMFALSUpdate ()
template<typename MatType > void Initialize (const MatType &dataset, const size_t rank)
template<typename MatType > static void HUpdate (const MatType &V, const arma::mat &W, arma::mat &H)
The update rule for the encoding matrix H. template<typename MatType > static void WUpdate (const MatType &V, arma::mat &W, const arma::mat &H)
The update rule for the basis matrix W.
The alternating least square update rules of matrices W and H.
Definition at line 39 of file nmf_als.hpp.
Definition at line 43 of file nmf_als.hpp.
The update rule for the encoding matrix H. The formula used is \[ H = ac{W^TV}{W^TW} \] 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 96 of file nmf_als.hpp.
Definition at line 46 of file nmf_als.hpp.
The update rule for the basis matrix W. The formula used is \[ W^T = ac{HV^T}{HH^T} \] 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 65 of file nmf_als.hpp.
Generated automatically by Doxygen for MLPACK from the source code.