This class initializes the w matrix of the nmf algorithm by averaging p randomly chosen columns of v.
RandomAcolInitialization ()
template<typename MatType > static void Initialize (const MatType &V, const size_t r, arma::mat &W, arma::mat &H)
This class initializes the W matrix of the NMF algorithm by averaging p randomly chosen columns of V.
In this case, p is a template parameter. H is then set randomly.
Template Parameters:
The number of random columns to average for each column of W.
Definition at line 42 of file random_acol_init.hpp.
Definition at line 46 of file random_acol_init.hpp.
Definition at line 50 of file random_acol_init.hpp.
References mlpack::math::RandInt(), and mlpack::Log::Warn.
Generated automatically by Doxygen for MLPACK from the source code.