13 #ifndef MLPACK_METHODS_LMF_RANDOM_INIT_HPP 14 #define MLPACK_METHODS_LMF_RANDOM_INIT_HPP 39 template<
typename MatType>
46 const size_t n = V.n_rows;
47 const size_t m = V.n_cols;
55 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).
The core includes that mlpack expects; standard C++ includes and Armadillo.
static void Initialize(const MatType &V, const size_t r, arma::mat &W, arma::mat &H)
Fill W and H with random uniform noise.