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;
62 template<
typename MatType>
66 const bool whichMatrix =
true)
69 const size_t n = V.n_rows;
70 const size_t m = V.n_cols;
84 template<
typename Archive>
static void Initialize(const MatType &V, const size_t r, arma::mat &W, arma::mat &H)
Fill W and H with random uniform noise.
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.
The core includes that mlpack expects; standard C++ includes and Armadillo.
void InitializeOne(const MatType &V, const size_t r, arma::mat &M, const bool whichMatrix=true)
Fill W or H with random uniform noise.
void serialize(Archive &, const uint32_t)
Serialize the object (in this case, there is nothing to serialize).