MLPACK
1.0.4
|
This class initializes the W matrix of the NMF algorithm by averaging p randomly chosen columns of V. More...
Public Member Functions | |
RandomAcolInitialization () | |
Static Public Member Functions | |
static void | Initialize (const arma::mat &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.
The | number of random columns to average for each column of W. |
Definition at line 42 of file random_acol_init.hpp.
mlpack::nmf::RandomAcolInitialization< p >::RandomAcolInitialization | ( | ) | [inline] |
Definition at line 46 of file random_acol_init.hpp.
static void mlpack::nmf::RandomAcolInitialization< p >::Initialize | ( | const arma::mat & | V, |
const size_t | r, | ||
arma::mat & | W, | ||
arma::mat & | H | ||
) | [inline, static] |
Definition at line 49 of file random_acol_init.hpp.
References mlpack::math::RandInt(), and mlpack::Log::Warn.