14 #ifndef __MLPACK_METHODS_LMF_UPDATE_RULES_NMF_MULT_DIST_UPDATE_RULES_HPP 15 #define __MLPACK_METHODS_LMF_UPDATE_RULES_NMF_MULT_DIST_UPDATE_RULES_HPP 51 template<
typename MatType>
71 template<
typename MatType>
72 inline static void WUpdate(
const MatType& V,
76 W = (W % (V * H.t())) / (W * H * H.t());
93 template<
typename MatType>
94 inline static void HUpdate(
const MatType& V,
98 H = (H % (W.t() * V)) / (W.t() * W * H);
102 template<
typename Archive>
static void HUpdate(const MatType &V, const arma::mat &W, arma::mat &H)
The update rule for the encoding matrix H.
Linear algebra utility functions, generally performed on matrices or vectors.
static void WUpdate(const MatType &V, arma::mat &W, const arma::mat &H)
The update rule for the basis matrix W.
void Serialize(Archive &, const unsigned int)
Serialize the object (in this case, there is nothing to serialize).
void Initialize(const MatType &, const size_t)
Initialize the factorization.
NMFMultiplicativeDistanceUpdate()
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
The multiplicative distance update rules for matrices W and H.