12 #ifndef MLPACK_METHODS_LMF_UPDATE_RULES_NMF_MULT_DIST_UPDATE_RULES_HPP 13 #define MLPACK_METHODS_LMF_UPDATE_RULES_NMF_MULT_DIST_UPDATE_RULES_HPP 49 template<
typename MatType>
69 template<
typename MatType>
70 inline static void WUpdate(
const MatType& V,
74 W = (W % (V * H.t())) / (W * H * H.t());
91 template<
typename MatType>
92 inline static void HUpdate(
const MatType& V,
96 H = (H % (W.t() * V)) / (W.t() * W * H);
100 template<
typename Archive>
Linear algebra utility functions, generally performed on matrices or vectors.
static void HUpdate(const MatType &V, const arma::mat &W, arma::mat &H)
The update rule for the encoding matrix H.
The core includes that mlpack expects; standard C++ includes and Armadillo.
void Initialize(const MatType &, const size_t)
Initialize the factorization.
static void WUpdate(const MatType &V, arma::mat &W, const arma::mat &H)
The update rule for the basis matrix W.
NMFMultiplicativeDistanceUpdate()
The multiplicative distance update rules for matrices W and H.
void serialize(Archive &, const uint32_t)
Serialize the object (in this case, there is nothing to serialize).