The multiplicative distance update rules for matrices w and h.
NMFMultiplicativeDistanceUpdate ()
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 multiplicative distance update rules for matrices W and H.
Definition at line 38 of file nmf_mult_dist.hpp.
Definition at line 42 of file nmf_mult_dist.hpp.
The update rule for the encoding matrix H. The formula used is \[ H_{a\mu} \leftarrow H_{a\mu} ac{(W^T V)_{a\mu}}{(W^T WH)_{a\mu}} \] 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 84 of file nmf_mult_dist.hpp.
Definition at line 45 of file nmf_mult_dist.hpp.
The update rule for the basis matrix W. The formula used is \[ W_{ia} \leftarrow W_{ia} ac{(VH^T)_{ia}}{(WHH^T)_{ia}} \] 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 64 of file nmf_mult_dist.hpp.
Generated automatically by Doxygen for MLPACK from the source code.