15 #ifndef __MLPACK_METHODS_LMF_RANDOM_INIT_HPP
16 #define __MLPACK_METHODS_LMF_RANDOM_INIT_HPP
41 template<
typename MatType>
48 const size_t n = V.n_rows;
49 const size_t m = V.n_cols;
57 template<
typename Archive>
This initialization rule for AMF simply fills the W and H matrices with uniform random noise in [0...
Linear algebra utility functions, generally performed on matrices or vectors.
void Serialize(Archive &, const unsigned int)
Serialize the object (in this case, there is nothing to serialize).
static void Initialize(const MatType &V, const size_t r, arma::mat &W, arma::mat &H)
Fill W and H with random uniform noise.
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...